Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ServerStates contains all the states for the Client machine. ServerStates = ssS // ServerGroups contains all the state groups for the Client machine. ServerGroups = sgS )
View Source
var ServerSchema = SchemaMerge( ss.BasicSchema, am.Schema{ ssS.ErrNetwork: { Require: S{am.StateException}, Remove: S{ssS.ClientConnected}, }, ssS.HandshakeDone: { Require: S{ssS.ClientConnected}, Remove: S{Exception}, }, ssS.Start: {Add: S{ssS.RpcStarting}}, ssS.Ready: { Auto: true, Require: S{ssS.HandshakeDone, ssS.RpcReady}, }, ssS.RpcStarting: { Require: S{ssS.Start}, Remove: sgS.Rpc, }, ssS.RpcAccepting: { Require: S{ssS.Start}, Remove: sgS.Rpc, }, ssS.RpcReady: { Require: S{ssS.Start}, Remove: sgS.Rpc, }, ssS.ClientConnected: { Require: S{ssS.RpcReady}, }, ssS.MetricSync: {Multi: true}, ssS.WebSocketTunnel: {}, })
ServerSchema represents all relations and properties of ClientStates.
Functions ¶
This section is empty.
Types ¶
type ServerGroupsDef ¶
type ServerGroupsDef struct {
// Rpc is a group for RPC ready states.
Rpc S
}
ServerGroupsDef contains all the state groups of the Client state machine.
type ServerStatesDef ¶
type ServerStatesDef struct {
*am.StatesBase
// Ready - Client is fully connected to the server.
Ready string
// Starting listening
RpcStarting string
// setting up RPC accepting
RpcAccepting string
// RPC is accepting or has accepted connections
RpcReady string
// RPC client connected (technically)
ClientConnected string
// RPC client fully usable
HandshakeDone string
// How many times the client requested a full sync.
MetricSync string
// TCP tunneled over websocket
WebSocketTunnel string
// inherit from BasicStatesDef
*ss.BasicStatesDef
}
ServerStatesDef contains all the states of the Client state machine.
Click to show internal directories.
Click to hide internal directories.
/pkg/history