noderoles

package
v0.112.0 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: MIT Imports: 1 Imported by: 16

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

func IsValid added in v0.112.0

func IsValid(r Role) bool

IsValid checks that the Role is within the range of acceptable roles.

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