Documentation
¶
Index ¶
- Variables
- type Advertisement
- func (*Advertisement) Descriptor() ([]byte, []int)deprecated
- func (x *Advertisement) GetData() []byte
- func (x *Advertisement) GetPeerId() string
- func (x *Advertisement) GetPublicKey() []byte
- func (x *Advertisement) GetSignature() []byte
- func (x *Advertisement) GetTimestamp() int64
- func (*Advertisement) ProtoMessage()
- func (x *Advertisement) ProtoReflect() protoreflect.Message
- func (x *Advertisement) Reset()
- func (x *Advertisement) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_common_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Advertisement ¶
type Advertisement struct { PeerId string `protobuf:"bytes,1,opt,name=peer_id,json=peerId,proto3" json:"peer_id,omitempty"` Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` PublicKey []byte `protobuf:"bytes,5,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // contains filtered or unexported fields }
Advertisement is the envelope to advertise peers payload.
func (*Advertisement) Descriptor
deprecated
func (*Advertisement) Descriptor() ([]byte, []int)
Deprecated: Use Advertisement.ProtoReflect.Descriptor instead.
func (*Advertisement) GetData ¶
func (x *Advertisement) GetData() []byte
func (*Advertisement) GetPeerId ¶
func (x *Advertisement) GetPeerId() string
func (*Advertisement) GetPublicKey ¶
func (x *Advertisement) GetPublicKey() []byte
func (*Advertisement) GetSignature ¶
func (x *Advertisement) GetSignature() []byte
func (*Advertisement) GetTimestamp ¶
func (x *Advertisement) GetTimestamp() int64
func (*Advertisement) ProtoMessage ¶
func (*Advertisement) ProtoMessage()
func (*Advertisement) ProtoReflect ¶
func (x *Advertisement) ProtoReflect() protoreflect.Message
func (*Advertisement) Reset ¶
func (x *Advertisement) Reset()
func (*Advertisement) String ¶
func (x *Advertisement) String() string
Click to show internal directories.
Click to hide internal directories.