enr

package
v0.0.0-...-e2a46ae Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry interface {
	MarshalRLPWith(ar *fastrlp.Arena) *fastrlp.Value
	UnmarshalRLPWith(v *fastrlp.Value) error
}

type IPv4

type IPv4 net.IP

func (IPv4) MarshalRLPWith

func (i IPv4) MarshalRLPWith(ar *fastrlp.Arena) *fastrlp.Value

func (*IPv4) UnmarshalRLPWith

func (i *IPv4) UnmarshalRLPWith(v *fastrlp.Value) (err error)

type IPv6

type IPv6 net.IP

func (IPv6) MarshalRLPWith

func (i IPv6) MarshalRLPWith(ar *fastrlp.Arena) *fastrlp.Value

func (*IPv6) UnmarshalRLPWith

func (i *IPv6) UnmarshalRLPWith(v *fastrlp.Value) (err error)

type Record

type Record struct {
	// contains filtered or unexported fields
}

func Unmarshal

func Unmarshal(b string) (*Record, error)

func (*Record) AddEntry

func (r *Record) AddEntry(k string, v Entry)

func (*Record) Load

func (r *Record) Load(k string, v Entry) error

func (*Record) Marshal

func (r *Record) Marshal() string

func (*Record) MarshalRLP

func (r *Record) MarshalRLP() []byte

func (*Record) Reset

func (r *Record) Reset()

func (*Record) Seq

func (r *Record) Seq() uint64

func (*Record) SetSeq

func (r *Record) SetSeq(i uint64)

func (*Record) Signature

func (r *Record) Signature() []byte

func (*Record) Unmarshal

func (r *Record) Unmarshal(s string) error

func (*Record) UnmarshalRLP

func (r *Record) UnmarshalRLP(b []byte) error

type String

type String string

func (String) MarshalRLPWith

func (s String) MarshalRLPWith(ar *fastrlp.Arena) *fastrlp.Value

func (*String) UnmarshalRLPWith

func (s *String) UnmarshalRLPWith(v *fastrlp.Value) error

type Uint16

type Uint16 uint16

func (Uint16) MarshalRLPWith

func (u Uint16) MarshalRLPWith(ar *fastrlp.Arena) *fastrlp.Value

func (*Uint16) UnmarshalRLPWith

func (u *Uint16) UnmarshalRLPWith(v *fastrlp.Value) error

Jump to

Keyboard shortcuts

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