discovery

package
v0.11.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 1 Imported by: 0

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

Names collects and define an order for state names

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

type S

type S = am.S

S is a type alias for a list of state names.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL