dave

package
v0.0.50 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use M.ProtoReflect.Descriptor instead.

func (*M) GetDatKey added in v0.0.50

func (x *M) GetDatKey() []byte

func (*M) GetOp

func (x *M) GetOp() Op

func (*M) GetPds

func (x *M) GetPds() []*Pd

func (*M) GetPubKey added in v0.0.50

func (x *M) GetPubKey() []byte

func (*M) GetSalt

func (x *M) GetSalt() []byte

func (*M) GetSig added in v0.0.50

func (x *M) GetSig() []byte

func (*M) GetTime

func (x *M) GetTime() []byte

func (*M) GetVal

func (x *M) GetVal() []byte

func (*M) GetWork

func (x *M) GetWork() []byte

func (*M) ProtoMessage

func (*M) ProtoMessage()

func (*M) ProtoReflect

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

func (*M) Reset

func (x *M) Reset()

func (*M) String

func (x *M) String() string

type Op

type Op int32
const (
	Op_GETPEER Op = 0
	Op_PEER    Op = 1
	Op_PUT     Op = 2
)

func (Op) Descriptor

func (Op) Descriptor() protoreflect.EnumDescriptor

func (Op) Enum

func (x Op) Enum() *Op

func (Op) EnumDescriptor deprecated

func (Op) EnumDescriptor() ([]byte, []int)

Deprecated: Use Op.Descriptor instead.

func (Op) Number

func (x Op) Number() protoreflect.EnumNumber

func (Op) String

func (x Op) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Pd.ProtoReflect.Descriptor instead.

func (*Pd) GetIp

func (x *Pd) GetIp() []byte

func (*Pd) GetPort

func (x *Pd) GetPort() uint32

func (*Pd) ProtoMessage

func (*Pd) ProtoMessage()

func (*Pd) ProtoReflect

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

func (*Pd) Reset

func (x *Pd) Reset()

func (*Pd) String

func (x *Pd) String() string

Jump to

Keyboard shortcuts

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