Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyType_name = map[int32]string{ 0: "Ed25519", } KeyType_value = map[string]int32{ "Ed25519": 0, } )
Enum value maps for KeyType.
View Source
var File_key_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Key ¶
type Key struct { Id []byte `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
DbData for synchronizing replicas and key/value exchange between nodes
func (*Key) Descriptor
deprecated
func (*Key) ProtoMessage ¶
func (*Key) ProtoMessage()
func (*Key) ProtoReflect ¶
func (x *Key) ProtoReflect() protoreflect.Message
type KeyType ¶
type KeyType int32
const (
KeyType_Ed25519 KeyType = 0
)
func (KeyType) Descriptor ¶
func (KeyType) Descriptor() protoreflect.EnumDescriptor
func (KeyType) EnumDescriptor
deprecated
func (KeyType) Number ¶
func (x KeyType) Number() protoreflect.EnumNumber
func (KeyType) Type ¶
func (KeyType) Type() protoreflect.EnumType
type PrivateKey ¶
type PrivateKey struct { Type KeyType `protobuf:"varint,1,opt,name=Type,proto3,enum=proto.KeyType" json:"Type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*PrivateKey) Descriptor
deprecated
func (*PrivateKey) Descriptor() ([]byte, []int)
Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.
func (*PrivateKey) GetData ¶
func (x *PrivateKey) GetData() []byte
func (*PrivateKey) GetType ¶
func (x *PrivateKey) GetType() KeyType
func (*PrivateKey) ProtoMessage ¶
func (*PrivateKey) ProtoMessage()
func (*PrivateKey) ProtoReflect ¶
func (x *PrivateKey) ProtoReflect() protoreflect.Message
func (*PrivateKey) Reset ¶
func (x *PrivateKey) Reset()
func (*PrivateKey) String ¶
func (x *PrivateKey) String() string
type PublicKey ¶
type PublicKey struct { Type KeyType `protobuf:"varint,1,opt,name=Type,proto3,enum=proto.KeyType" json:"Type,omitempty"` Data []byte `protobuf:"bytes,2,opt,name=Data,proto3" json:"Data,omitempty"` // contains filtered or unexported fields }
func (*PublicKey) Descriptor
deprecated
func (*PublicKey) ProtoMessage ¶
func (*PublicKey) ProtoMessage()
func (*PublicKey) ProtoReflect ¶
func (x *PublicKey) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.