noderoles

package
v0.0.0-...-886a677 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 1 Imported by: 5

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

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

func (i Role) String() string

Jump to

Keyboard shortcuts

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