topic

package
v0.11.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Publish = "Publish"

	Closed      = "Closed"
	Subscribe   = "Subscribe"
	Discovering = "Discovering"
	Discovered  = "Discovered"
	EnoughPeers = "EnoughPeers"
	FindPeers   = "FindPeers"
)

Variables

View Source
var Names = am.S{Publish}

Names is an ordered list of all the state names.

View Source
var States = am.Struct{
	Publish: {
		Multi: true,
	},
	Closed: {
		Remove: am.S{Subscribe, Advertise},
	},
	Subscribe: {
		Multi: true,
		Add:   am.S{Discovering},
	},
	Advertise: {
		Multi: true,
	},
	Discovering: {
		Remove: discovering,
	},
	Discovered: {
		Remove: discovering,
	},
	EnoughPeers: {},
	FindPeers:   {},
}

States map defines relations and properties of states. TODO implement?

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