noderoles

package
v0.105.1 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: MIT Imports: 1 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Roles []Role

Roles is a set of all available roles sorted by values.

Functions

This section is empty.

Types

type Role

type Role byte

Role represents the type of the participant.

const (
	StateValidator Role
	Oracle
	NeoFSAlphabet
	P2PNotary
)

Role enumeration.

func FromString added in v0.103.0

func FromString(s string) (Role, bool)

FromString returns a node role parsed from its string representation and a boolean value denoting whether the conversion was OK and the role exists.

func (Role) String added in v0.103.0

func (i Role) String() string

Jump to

Keyboard shortcuts

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