Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Role ¶
type Role uint
Role is a peer's role.
func FromString ¶ added in v2.2.0
FromString returns the Role for the given string.
func (Role) MarshalJSON ¶
MarshalJSON marshals the Role to JSON string.
func (*Role) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Role from JSON string.
Click to show internal directories.
Click to hide internal directories.