package states
import (
am "github.com/pancsta/asyncmachine-go/pkg/machine"
. "github.com/pancsta/asyncmachine-go/pkg/states/global"
)
type GeneratorStatesDef struct {
*am .StatesBase
InheritBasic string
InheritConnected string
InheritDisposed string
InheritRpcNetSource string
InheritNodeWorker string
Inherit string
GroupsLocal string
GroupsInherited string
Groups string
}
type GeneratorGroupsDef struct {
Inherit S
}
var GeneratorSchema = am .Schema {
ssG .InheritBasic : {},
ssG .InheritConnected : {Add : S {ssG .GroupsInherited }},
ssG .InheritDisposed : {},
ssG .InheritRpcNetSource : {},
ssG .InheritNodeWorker : {
Add : S {ssG .GroupsInherited },
Remove : S {ssG .InheritRpcNetSource },
},
ssG .Inherit : {Auto : true },
ssG .GroupsLocal : {},
ssG .GroupsInherited : {},
ssG .Groups : {Auto : true },
}
var (
ssG = am .NewStates (GeneratorStatesDef {})
sgG = am .NewStateGroups (GeneratorGroupsDef {
Inherit : S {ssG .InheritBasic , ssG .InheritConnected , ssG .InheritRpcNetSource ,
ssG .InheritNodeWorker , ssG .InheritDisposed },
})
GeneratorStates = ssG
GeneratorGroups = sgG
)
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 .