Documentation
¶
Index ¶
- Variables
- type KVPair
- type KeyCurve
- type NodeRecord
- func (*NodeRecord) Descriptor() ([]byte, []int)deprecated
- func (x *NodeRecord) GetID() []byte
- func (x *NodeRecord) GetIPV4() string
- func (x *NodeRecord) GetIPV6() string
- func (x *NodeRecord) GetMetadata() []*KVPair
- func (x *NodeRecord) GetPort() int32
- func (x *NodeRecord) GetPublicKey() []byte
- func (x *NodeRecord) GetRelays() []*NodeRecord
- func (x *NodeRecord) GetSignature() []byte
- func (*NodeRecord) ProtoMessage()
- func (x *NodeRecord) ProtoReflect() protoreflect.Message
- func (x *NodeRecord) Reset()
- func (x *NodeRecord) String() string
- type PrivateKey
- type PublicKey
Constants ¶
This section is empty.
Variables ¶
View Source
var ( KeyCurve_name = map[int32]string{ 0: "ECDSA", } KeyCurve_value = map[string]int32{ "ECDSA": 0, } )
Enum value maps for KeyCurve.
View Source
var File_address_proto protoreflect.FileDescriptor
View Source
var File_key_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type KVPair ¶
type KVPair struct { Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*KVPair) Descriptor
deprecated
func (*KVPair) ProtoMessage ¶
func (*KVPair) ProtoMessage()
func (*KVPair) ProtoReflect ¶
func (x *KVPair) ProtoReflect() protoreflect.Message
type KeyCurve ¶
type KeyCurve int32
const (
KeyCurve_ECDSA KeyCurve = 0
)
func (KeyCurve) Descriptor ¶
func (KeyCurve) Descriptor() protoreflect.EnumDescriptor
func (KeyCurve) EnumDescriptor
deprecated
func (KeyCurve) Number ¶
func (x KeyCurve) Number() protoreflect.EnumNumber
func (KeyCurve) Type ¶
func (KeyCurve) Type() protoreflect.EnumType
type NodeRecord ¶
type NodeRecord struct { ID []byte `protobuf:"bytes,59,opt,name=ID,proto3" json:"ID,omitempty"` IPV4 string `protobuf:"bytes,1,opt,name=IPV4,proto3" json:"IPV4,omitempty"` IPV6 string `protobuf:"bytes,2,opt,name=IPV6,proto3" json:"IPV6,omitempty"` Port int32 `protobuf:"varint,3,opt,name=port,proto3" json:"port,omitempty"` Relays []*NodeRecord `protobuf:"bytes,4,rep,name=relays,proto3" json:"relays,omitempty"` Metadata []*KVPair `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty"` PublicKey []byte `protobuf:"bytes,6,opt,name=publicKey,proto3" json:"publicKey,omitempty"` Signature []byte `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*NodeRecord) Descriptor
deprecated
func (*NodeRecord) Descriptor() ([]byte, []int)
Deprecated: Use NodeRecord.ProtoReflect.Descriptor instead.
func (*NodeRecord) GetID ¶
func (x *NodeRecord) GetID() []byte
func (*NodeRecord) GetIPV4 ¶
func (x *NodeRecord) GetIPV4() string
func (*NodeRecord) GetIPV6 ¶
func (x *NodeRecord) GetIPV6() string
func (*NodeRecord) GetMetadata ¶
func (x *NodeRecord) GetMetadata() []*KVPair
func (*NodeRecord) GetPort ¶
func (x *NodeRecord) GetPort() int32
func (*NodeRecord) GetPublicKey ¶
func (x *NodeRecord) GetPublicKey() []byte
func (*NodeRecord) GetRelays ¶
func (x *NodeRecord) GetRelays() []*NodeRecord
func (*NodeRecord) GetSignature ¶
func (x *NodeRecord) GetSignature() []byte
func (*NodeRecord) ProtoMessage ¶
func (*NodeRecord) ProtoMessage()
func (*NodeRecord) ProtoReflect ¶
func (x *NodeRecord) ProtoReflect() protoreflect.Message
func (*NodeRecord) Reset ¶
func (x *NodeRecord) Reset()
func (*NodeRecord) String ¶
func (x *NodeRecord) String() string
type PrivateKey ¶
type PrivateKey struct { Curve KeyCurve `protobuf:"varint,1,opt,name=curve,proto3,enum=messaging.KeyCurve" json:"curve,omitempty"` RawKey []byte `protobuf:"bytes,2,opt,name=rawKey,proto3" json:"rawKey,omitempty"` // contains filtered or unexported fields }
func (*PrivateKey) Descriptor
deprecated
func (*PrivateKey) Descriptor() ([]byte, []int)
Deprecated: Use PrivateKey.ProtoReflect.Descriptor instead.
func (*PrivateKey) GetCurve ¶
func (x *PrivateKey) GetCurve() KeyCurve
func (*PrivateKey) GetRawKey ¶
func (x *PrivateKey) GetRawKey() []byte
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 { Curve KeyCurve `protobuf:"varint,1,opt,name=curve,proto3,enum=messaging.KeyCurve" json:"curve,omitempty"` RawKey []byte `protobuf:"bytes,2,opt,name=rawKey,proto3" json:"rawKey,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.