Documentation ¶
Index ¶
Constants ¶
View Source
const ( Exception = "Exception" Start = "Start" PoolTimer = "PoolTimer" RefreshingDiscoveries = "RefreshingDiscoveries" DiscoveriesRefreshed = "DiscoveriesRefreshed" DiscoveringTopic = "DiscoveringTopic" TopicDiscovered = "TopicDiscovered" BootstrappingTopic = "BootstrappingTopic" TopicBootstrapped = "TopicBootstrapped" AdvertisingTopic = "AdvertisingTopic" StopAdvertisingTopic = "StopAdvertisingTopic" BootstrapDelay = "BootstrapDelay" BootstrapChecking = "BootstrapChecking" )
Variables ¶
View Source
var (
BootstrapGroup = S{DiscoveringTopic, BootstrapDelay, BootstrapChecking, TopicBootstrapped}
)
View Source
var Names = S{Exception, Start, PoolTimer, RefreshingDiscoveries, DiscoveriesRefreshed, DiscoveringTopic, TopicDiscovered, BootstrappingTopic, TopicBootstrapped, AdvertisingTopic, StopAdvertisingTopic}
Names collects and define an order for state names
View Source
var NamesBootstrapFlow = S{Exception, Start, BootstrapChecking, DiscoveringTopic, BootstrapDelay, TopicBootstrapped}
View Source
var States = am.Struct{ Start: { Add: S{PoolTimer}, }, PoolTimer: {}, RefreshingDiscoveries: { Require: S{Start}, }, DiscoveriesRefreshed: { Require: S{Start}, }, DiscoveringTopic: { Multi: true, }, TopicDiscovered: { Multi: true, }, BootstrappingTopic: { Multi: true, }, TopicBootstrapped: { Multi: true, }, AdvertisingTopic: { Multi: true, }, StopAdvertisingTopic: { Multi: true, }, }
States define relations between states.
View Source
var StatesBootstrapFlow = am.Struct{ Start: { Add: S{BootstrapChecking}, }, BootstrapChecking: { Remove: BootstrapGroup, }, DiscoveringTopic: { Remove: BootstrapGroup, }, BootstrapDelay: { Remove: BootstrapGroup, }, TopicBootstrapped: { Remove: BootstrapGroup, }, }
StatesBootstrapFlow define relations between states for the bootstrap flow.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.