Documentation ¶
Index ¶
Constants ¶
View Source
const ( Publish = "Publish" Closed = "Closed" Subscribe = "Subscribe" Advertise = "Advertise" 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 ¶
Click to show internal directories.
Click to hide internal directories.