common

package
v0.5.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_common_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

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

Jump to

Keyboard shortcuts

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