Documentation ¶
Index ¶
- Variables
- type M
- func (*M) Descriptor() ([]byte, []int)deprecated
- func (x *M) GetDatKey() []byte
- func (x *M) GetOp() Op
- func (x *M) GetPds() []*Pd
- func (x *M) GetPubKey() []byte
- func (x *M) GetSalt() []byte
- func (x *M) GetSig() []byte
- func (x *M) GetTime() []byte
- func (x *M) GetVal() []byte
- func (x *M) GetWork() []byte
- func (*M) ProtoMessage()
- func (x *M) ProtoReflect() protoreflect.Message
- func (x *M) Reset()
- func (x *M) String() string
- type Op
- type Pd
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Op_name = map[int32]string{ 0: "GETPEER", 1: "PEER", 2: "PUT", } Op_value = map[string]int32{ "GETPEER": 0, "PEER": 1, "PUT": 2, } )
Enum value maps for Op.
View Source
var File_dave_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type M ¶
type M struct { Op Op `protobuf:"varint,1,opt,name=op,proto3,enum=Op" json:"op,omitempty"` Pds []*Pd `protobuf:"bytes,2,rep,name=pds,proto3" json:"pds,omitempty"` DatKey []byte `protobuf:"bytes,3,opt,name=datKey,proto3" json:"datKey,omitempty"` Val []byte `protobuf:"bytes,4,opt,name=val,proto3" json:"val,omitempty"` Time []byte `protobuf:"bytes,5,opt,name=time,proto3" json:"time,omitempty"` Salt []byte `protobuf:"bytes,6,opt,name=salt,proto3" json:"salt,omitempty"` Work []byte `protobuf:"bytes,7,opt,name=work,proto3" json:"work,omitempty"` PubKey []byte `protobuf:"bytes,8,opt,name=pubKey,proto3" json:"pubKey,omitempty"` Sig []byte `protobuf:"bytes,9,opt,name=sig,proto3" json:"sig,omitempty"` // contains filtered or unexported fields }
func (*M) Descriptor
deprecated
func (*M) ProtoMessage ¶
func (*M) ProtoMessage()
func (*M) ProtoReflect ¶
func (x *M) ProtoReflect() protoreflect.Message
type Op ¶
type Op int32
func (Op) Descriptor ¶
func (Op) Descriptor() protoreflect.EnumDescriptor
func (Op) EnumDescriptor
deprecated
func (Op) Number ¶
func (x Op) Number() protoreflect.EnumNumber
func (Op) Type ¶
func (Op) Type() protoreflect.EnumType
type Pd ¶
type Pd struct { Ip []byte `protobuf:"bytes,1,opt,name=ip,proto3" json:"ip,omitempty"` Port uint32 `protobuf:"varint,2,opt,name=port,proto3" json:"port,omitempty"` // contains filtered or unexported fields }
func (*Pd) Descriptor
deprecated
func (*Pd) ProtoMessage ¶
func (*Pd) ProtoMessage()
func (*Pd) ProtoReflect ¶
func (x *Pd) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.