Source File
ss_bootstrap.go
Belonging Package
/pkg/node/states
package statesimport (amssrpcssam.)// BootstrapStatesDef contains all the states of the Bootstrap state machine.// The target state is WorkerAddr, activated by an aRPC client.type BootstrapStatesDef struct {*am.StatesBase// WorkerAddr - The awaited worker passed its connection details.WorkerAddr string// inherit from BasicStatesDef*ssam.BasicStatesDef// inherit from NetSourceStatesDef*ssrpc.NetSourceStatesDef}// BootstrapSchema represents all relations and properties of// BootstrapStatesDef.var BootstrapSchema = SchemaMerge(// inherit from BasicSchemassam.BasicSchema,// inherit from WorkerStructssrpc.NetSourceSchema,am.Schema{cos.WorkerAddr: {},})// EXPORTS AND GROUPSvar (cos = am.NewStates(BootstrapStatesDef{})// BootstrapStates contains all the states for the Bootstrap machine.BootstrapStates = cos)
![]() |
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. |