states

package
v0.11.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	Exception = "Exception"

	PeersPending       = "PeersPending"
	PeersDead          = "PeersDead"
	PeerNewStream      = "PeerNewStream"
	PeerCloseStream    = "PeerCloseStream"
	PeerError          = "PeerError"
	GetTopics          = "GetTopics"
	AddTopic           = "AddTopic"
	RemoveTopic        = "RemoveTopic"
	RemoveSubscription = "RemoveSubscription"
	AddSubscription    = "AddSubscription"
	AddRelay           = "AddRelay"
	RemoveRelay        = "RemoveRelay"
	GetPeers           = "GetPeers"
	IncomingRPC        = "IncomingRPC"
	AddValidator       = "AddValidator"
	RemoveValidator    = "RemoveValidator"
	PublishMessage     = "PublishMessage"
	AnnouncingTopic    = "AnnouncingTopic"
	TopicAnnounced     = "TopicAnnounced"
	BlacklistPeer      = "BlacklistPeer"
)

Variables

Names collects and define an order for state names

View Source
var States = am.Struct{

	PeersPending: {},
	PeersDead:    {},
	GetPeers:     {Multi: true},

	PeerNewStream:   {Multi: true},
	PeerCloseStream: {Multi: true},
	PeerError:       {Multi: true},
	PublishMessage:  {Multi: true},
	BlacklistPeer:   {Multi: true},

	GetTopics:       {Multi: true},
	AddTopic:        {Multi: true},
	RemoveTopic:     {Multi: true},
	AnnouncingTopic: {Multi: true},
	TopicAnnounced:  {Multi: true},

	RemoveSubscription: {Multi: true},
	AddSubscription:    {Multi: true},

	AddRelay:        {Multi: true},
	RemoveRelay:     {Multi: true},
	IncomingRPC:     {Multi: true},
	AddValidator:    {Multi: true},
	RemoveValidator: {Multi: true},
}

States define relations between states

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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