package states
import (
am "github.com/pancsta/asyncmachine-go/pkg/machine"
ss "github.com/pancsta/asyncmachine-go/pkg/states"
)
type MachTemplateStatesDef struct {
*am .StatesBase
ErrExample string
Foo string
Bar string
Baz string
BazDone string
Channel string
*ss .BasicStatesDef
*ss .ConnectedStatesDef
*ss .DisposedStatesDef
}
type MachTemplateGroupsDef struct {
*ss .ConnectedGroupsDef
Group1 S
Group2 S
}
var MachTemplateSchema = SchemaMerge (
ss .BasicSchema ,
ss .ConnectedSchema ,
ss .DisposedSchema ,
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 {},
}, ss .ConnectedGroups )
MachTemplateStates = ssM
MachTemplateGroups = sgM
)
The pages are generated with Golds v0.8.2 . (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 .