package states
import (
am "github.com/pancsta/asyncmachine-go/pkg/machine"
ssrpc "github.com/pancsta/asyncmachine-go/pkg/rpc/states"
ssam "github.com/pancsta/asyncmachine-go/pkg/states"
)
type MachTemplateStatesDef struct {
*am .StatesBase
ErrExample string
Foo string
Bar string
Baz string
BazDone string
Channel string
*ssam .BasicStatesDef
*ssam .ConnectedStatesDef
*ssam .DisposedStatesDef
*ssrpc .StateSourceStatesDef
}
type MachTemplateGroupsDef struct {
*ssam .ConnectedGroupsDef
Group1 S
Group2 S
}
var MachTemplateSchema = ssam .BasicSchema .Merge (
ssam .ConnectedSchema ,
ssam .DisposedSchema ,
ssrpc .StateSourceSchema ,
am .Schema {
ssM .ErrExample : {
Require : S {ssM .Exception },
},
ssM .Foo : {
Require : S {ssM .Bar },
},
ssM .Bar : {},
ssM .Baz : {
Multi : true ,
},
ssM .BazDone : {
Multi : true ,
},
ssM .Channel : {},
})
var (
ssM = am .NewStates (MachTemplateStatesDef {})
sgM = am .NewStateGroups (MachTemplateGroupsDef {
Group1 : S {},
Group2 : S {},
}, ssam .ConnectedGroups )
MachTemplateStates = ssM
MachTemplateGroups = sgM
)
The pages are generated with Golds v0.8.4 . (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu .
PR and bug reports are welcome and can be submitted to the issue list .
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds .