Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var IncompleteKey = errors.New("incomplete key")
View Source
var UnknownKey = errors.New("unknown key")
Functions ¶
Types ¶
type AddrBookRecord ¶
type AddrBookRecord struct { // The multiaddresses. This is a sorted list where element 0 expires the soonest. Addrs []*AddrBookRecord_AddrEntry `json:"addrs,omitempty"` // The most recently received signed PeerRecord. CertifiedRecord *AddrBookRecord_CertifiedRecord `json:"certified_record,omitempty"` }
type ENRData ¶
type ENRData struct { Raw string `json:"raw,omitempty"` Other map[string]string `json:"other,omitempty"` Eth2Data *beacon.Eth2Data `json:"eth2_data,omitempty"` Attnets *beacon.AttnetBits `json:"attnets,omitempty"` Seq uint64 `json:"seq,omitempty"` IP net.IP `json:"ip,omitempty"` TCP uint16 `json:"tcp,omitempty"` UDP uint16 `json:"udp,omitempty"` }
type Entry ¶
type Entry struct { Key string Value interface{} // should be either something json-encodeable }
type PartialPeerstoreEntry ¶
type PartialPeerstoreEntry struct { Eth2 *Eth2Data `json:"eth2,omitempty"` AddrRecords *AddrBookRecord `json:"addr_records,omitempty"` Protocols []string `json:"protocols,omitempty"` ProtocolVersion string `json:"protocol_version,omitempty"` UserAgent string `json:"user_agent,omitempty"` Pubkey string `json:"pub,omitempty"` // raw bytes, not the protobuf representation NodeID string `json:"node_id,omitempty"` }
func ItemToEntry ¶
func (*PartialPeerstoreEntry) Merge ¶
func (p *PartialPeerstoreEntry) Merge(other *PartialPeerstoreEntry)
func (*PartialPeerstoreEntry) ToCSV ¶
func (p *PartialPeerstoreEntry) ToCSV(prefixFields ...string) (out [][]string)
Click to show internal directories.
Click to hide internal directories.