Documentation
¶
Index ¶
- Constants
- Variables
- type Address
- func (a Address) Bytes() []byte
- func (a Address) Compare(other Address) int
- func (a Address) Equal(other Address) bool
- func (a Address) Hex() string
- func (a Address) IsZero() bool
- func (a Address) MapKey() (state.Keypath, error)
- func (a Address) Marshal() ([]byte, error)
- func (a Address) MarshalJSON() ([]byte, error)
- func (a Address) MarshalText() ([]byte, error)
- func (a *Address) MarshalTo(data []byte) (n int, err error)
- func (a Address) Pretty() string
- func (a *Address) ScanMapKey(keypath state.Keypath) error
- func (a *Address) Size() int
- func (a Address) String() string
- func (a *Address) Unmarshal(data []byte) error
- func (a *Address) UnmarshalJSON(data []byte) error
- func (a *Address) UnmarshalText(asHex []byte) error
- type Hash
- func (h Hash) Bytes() []byte
- func (h Hash) Compare(other Hash) int
- func (h Hash) Copy() Hash
- func (h Hash) Equal(other Hash) bool
- func (h Hash) Hex() string
- func (h Hash) Marshal() ([]byte, error)
- func (h Hash) MarshalJSON() ([]byte, error)
- func (h Hash) MarshalText() ([]byte, error)
- func (h *Hash) MarshalTo(data []byte) (n int, err error)
- func (h Hash) Pretty() string
- func (h *Hash) Size() int
- func (h Hash) String() string
- func (h *Hash) Unmarshal(data []byte) error
- func (h *Hash) UnmarshalJSON(data []byte) error
- func (h *Hash) UnmarshalText(text []byte) error
- type HashAlg
- type ID
- func (id ID) Bytes() []byte
- func (id ID) Compare(other ID) int
- func (id ID) Equal(other ID) bool
- func (id ID) Hex() string
- func (id ID) Marshal() ([]byte, error)
- func (id ID) MarshalJSON() ([]byte, error)
- func (id ID) MarshalText() ([]byte, error)
- func (id *ID) MarshalTo(data []byte) (n int, err error)
- func (id ID) Pretty() string
- func (id *ID) Size() int
- func (id ID) String() string
- func (id *ID) Unmarshal(data []byte) error
- func (id *ID) UnmarshalJSON(data []byte) error
- func (id *ID) UnmarshalText(text []byte) error
- type Range
- type Set
- func (s Set[T]) Add(val T) bool
- func (s Set[T]) Any() T
- func (s Set[T]) Contains(val T) bool
- func (s Set[T]) Copy() Set[T]
- func (s Set[T]) Equal(other Set[T]) bool
- func (s Set[T]) Intersection(other Set[T]) Set[T]
- func (s Set[T]) MarshalYAML() (interface{}, error)
- func (s Set[T]) Remove(val T) bool
- func (s Set[T]) Slice() []T
- func (s *Set[T]) UnmarshalYAML(node *yaml.Node) error
- type Signature
- func (sig Signature) Compare(other Signature) int
- func (sig Signature) Copy() Signature
- func (sig Signature) Equal(other Signature) bool
- func (sig Signature) Hex() string
- func (sig Signature) Marshal() ([]byte, error)
- func (sig Signature) MarshalJSON() ([]byte, error)
- func (sig *Signature) MarshalTo(data []byte) (n int, err error)
- func (sig *Signature) Size() int
- func (sig Signature) String() string
- func (sig *Signature) Unmarshal(data []byte) error
- func (sig *Signature) UnmarshalJSON(data []byte) error
- func (sig *Signature) UnmarshalText(bs []byte) error
- type SyncSet
- func (s SyncSet[T]) Add(val T) bool
- func (s SyncSet[T]) Any() T
- func (s SyncSet[T]) Contains(val T) bool
- func (s SyncSet[T]) Copy() SyncSet[T]
- func (s SyncSet[T]) Equal(other SyncSet[T]) bool
- func (s SyncSet[T]) MarshalYAML() (interface{}, error)
- func (s SyncSet[T]) Remove(val T) bool
- func (s SyncSet[T]) Slice() []T
- func (s *SyncSet[T]) UnmarshalYAML(node *yaml.Node) error
- type Time
Constants ¶
View Source
const ( HashAlgUnknown = pb.HashAlgUnknown SHA1 = pb.SHA1 SHA3 = pb.SHA3 )
Variables ¶
View Source
var (
EmptyHash = Hash{}
)
View Source
var EmptyID = ID{}
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address [20]byte
func AddressFromBytes ¶
func AddressFromHex ¶
func NewPopulatedAddress ¶
func NewPopulatedAddress(_ gogoprotobufTest) *Address
func RandomAddress ¶
func RandomAddress() Address
func (Address) MarshalJSON ¶
func (Address) MarshalText ¶
func (*Address) UnmarshalJSON ¶
func (*Address) UnmarshalText ¶
type Hash ¶
type Hash [32]byte
func HashFromBytes ¶
func HashFromHex ¶
func NewPopulatedHash ¶
func NewPopulatedHash(_ gogoprotobufTest) *Hash
func (Hash) MarshalJSON ¶
func (Hash) MarshalText ¶
func (*Hash) UnmarshalJSON ¶
func (*Hash) UnmarshalText ¶
type ID ¶
type ID [32]byte
func IDFromBytes ¶
func IDFromString ¶
func NewPopulatedID ¶
func NewPopulatedID(_ gogoprotobufTest) *ID
func (ID) MarshalJSON ¶
func (ID) MarshalText ¶
func (*ID) UnmarshalJSON ¶
func (*ID) UnmarshalText ¶
type Set ¶
type Set[T comparable] map[T]struct{}
func NewSet ¶
func NewSet[T comparable](vals []T) Set[T]
func (Set[T]) Intersection ¶
func (Set[T]) MarshalYAML ¶
func (*Set[T]) UnmarshalYAML ¶
type Signature ¶
type Signature []byte
func NewPopulatedSignature ¶
func NewPopulatedSignature(_ gogoprotobufTest) *Signature
func SignatureFromHex ¶
func (Signature) MarshalJSON ¶
func (*Signature) UnmarshalJSON ¶
func (*Signature) UnmarshalText ¶
type SyncSet ¶
type SyncSet[T comparable] struct { // contains filtered or unexported fields }
func NewSyncSet ¶
func NewSyncSet[T comparable](vals []T) SyncSet[T]
func (SyncSet[T]) MarshalYAML ¶
func (*SyncSet[T]) UnmarshalYAML ¶
Click to show internal directories.
Click to hide internal directories.