pb

package
v0.32.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_pb_pstore_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type AddrBookRecord

type AddrBookRecord struct {

	// The peer ID.
	Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The multiaddresses. This is a sorted list where element 0 expires the soonest.
	Addrs []*AddrBookRecord_AddrEntry `protobuf:"bytes,2,rep,name=addrs,proto3" json:"addrs,omitempty"`
	// The most recently received signed PeerRecord.
	CertifiedRecord *AddrBookRecord_CertifiedRecord `protobuf:"bytes,3,opt,name=certified_record,json=certifiedRecord,proto3" json:"certified_record,omitempty"`
	// contains filtered or unexported fields
}

AddrBookRecord represents a record for a peer in the address book.

func (*AddrBookRecord) Descriptor deprecated

func (*AddrBookRecord) Descriptor() ([]byte, []int)

Deprecated: Use AddrBookRecord.ProtoReflect.Descriptor instead.

func (*AddrBookRecord) GetAddrs

func (x *AddrBookRecord) GetAddrs() []*AddrBookRecord_AddrEntry

func (*AddrBookRecord) GetCertifiedRecord

func (x *AddrBookRecord) GetCertifiedRecord() *AddrBookRecord_CertifiedRecord

func (*AddrBookRecord) GetId

func (x *AddrBookRecord) GetId() []byte

func (*AddrBookRecord) ProtoMessage

func (*AddrBookRecord) ProtoMessage()

func (*AddrBookRecord) ProtoReflect

func (x *AddrBookRecord) ProtoReflect() protoreflect.Message

func (*AddrBookRecord) Reset

func (x *AddrBookRecord) Reset()

func (*AddrBookRecord) String

func (x *AddrBookRecord) String() string

type AddrBookRecord_AddrEntry

type AddrBookRecord_AddrEntry struct {
	Addr []byte `protobuf:"bytes,1,opt,name=addr,proto3" json:"addr,omitempty"`
	// The point in time when this address expires.
	Expiry int64 `protobuf:"varint,2,opt,name=expiry,proto3" json:"expiry,omitempty"`
	// The original TTL of this address.
	Ttl int64 `protobuf:"varint,3,opt,name=ttl,proto3" json:"ttl,omitempty"`
	// contains filtered or unexported fields
}

AddrEntry represents a single multiaddress.

func (*AddrBookRecord_AddrEntry) Descriptor deprecated

func (*AddrBookRecord_AddrEntry) Descriptor() ([]byte, []int)

Deprecated: Use AddrBookRecord_AddrEntry.ProtoReflect.Descriptor instead.

func (*AddrBookRecord_AddrEntry) GetAddr

func (x *AddrBookRecord_AddrEntry) GetAddr() []byte

func (*AddrBookRecord_AddrEntry) GetExpiry

func (x *AddrBookRecord_AddrEntry) GetExpiry() int64

func (*AddrBookRecord_AddrEntry) GetTtl

func (x *AddrBookRecord_AddrEntry) GetTtl() int64

func (*AddrBookRecord_AddrEntry) ProtoMessage

func (*AddrBookRecord_AddrEntry) ProtoMessage()

func (*AddrBookRecord_AddrEntry) ProtoReflect

func (x *AddrBookRecord_AddrEntry) ProtoReflect() protoreflect.Message

func (*AddrBookRecord_AddrEntry) Reset

func (x *AddrBookRecord_AddrEntry) Reset()

func (*AddrBookRecord_AddrEntry) String

func (x *AddrBookRecord_AddrEntry) String() string

type AddrBookRecord_CertifiedRecord

type AddrBookRecord_CertifiedRecord struct {

	// The Seq counter from the signed PeerRecord envelope
	Seq uint64 `protobuf:"varint,1,opt,name=seq,proto3" json:"seq,omitempty"`
	// The serialized bytes of the SignedEnvelope containing the PeerRecord.
	Raw []byte `protobuf:"bytes,2,opt,name=raw,proto3" json:"raw,omitempty"`
	// contains filtered or unexported fields
}

CertifiedRecord contains a serialized signed PeerRecord used to populate the signedAddrs list.

func (*AddrBookRecord_CertifiedRecord) Descriptor deprecated

func (*AddrBookRecord_CertifiedRecord) Descriptor() ([]byte, []int)

Deprecated: Use AddrBookRecord_CertifiedRecord.ProtoReflect.Descriptor instead.

func (*AddrBookRecord_CertifiedRecord) GetRaw

func (x *AddrBookRecord_CertifiedRecord) GetRaw() []byte

func (*AddrBookRecord_CertifiedRecord) GetSeq

func (*AddrBookRecord_CertifiedRecord) ProtoMessage

func (*AddrBookRecord_CertifiedRecord) ProtoMessage()

func (*AddrBookRecord_CertifiedRecord) ProtoReflect

func (*AddrBookRecord_CertifiedRecord) Reset

func (x *AddrBookRecord_CertifiedRecord) Reset()

func (*AddrBookRecord_CertifiedRecord) String

Jump to

Keyboard shortcuts

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