Documentation
¶
Index ¶
- Variables
- type Record
- func (*Record) Descriptor() ([]byte, []int)deprecated
- func (x *Record) GetKey() []byte
- func (x *Record) GetTimeReceived() string
- func (x *Record) GetValue() []byte
- func (*Record) ProtoMessage()
- func (x *Record) ProtoReflect() protoreflect.Message
- func (x *Record) Reset()
- func (x *Record) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_github_com_libp2p_go_libp2p_record_pb_record_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Record ¶
type Record struct { // The key that references this record Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // The actual value this record is storing Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // Time the record was received, set by receiver TimeReceived string `protobuf:"bytes,5,opt,name=timeReceived,proto3" json:"timeReceived,omitempty"` // contains filtered or unexported fields }
Record represents a dht record that contains a value for a key value pair
func (*Record) Descriptor
deprecated
func (*Record) GetTimeReceived ¶
func (*Record) ProtoMessage ¶
func (*Record) ProtoMessage()
func (*Record) ProtoReflect ¶ added in v0.3.0
func (x *Record) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.