proto

package
v0.0.4 Latest Latest
Warning

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

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

Documentation

Index

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

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

Deprecated: Use KVPair.ProtoReflect.Descriptor instead.

func (*KVPair) GetKey

func (x *KVPair) GetKey() string

func (*KVPair) GetValue

func (x *KVPair) GetValue() []byte

func (*KVPair) ProtoMessage

func (*KVPair) ProtoMessage()

func (*KVPair) ProtoReflect

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

func (*KVPair) Reset

func (x *KVPair) Reset()

func (*KVPair) String

func (x *KVPair) String() string

type KeyCurve

type KeyCurve int32
const (
	KeyCurve_ECDSA KeyCurve = 0
)

func (KeyCurve) Descriptor

func (KeyCurve) Descriptor() protoreflect.EnumDescriptor

func (KeyCurve) Enum

func (x KeyCurve) Enum() *KeyCurve

func (KeyCurve) EnumDescriptor deprecated

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

Deprecated: Use KeyCurve.Descriptor instead.

func (KeyCurve) Number

func (x KeyCurve) Number() protoreflect.EnumNumber

func (KeyCurve) String

func (x KeyCurve) String() string

func (KeyCurve) Type

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

Deprecated: Use PublicKey.ProtoReflect.Descriptor instead.

func (*PublicKey) GetCurve

func (x *PublicKey) GetCurve() KeyCurve

func (*PublicKey) GetRawKey

func (x *PublicKey) GetRawKey() []byte

func (*PublicKey) ProtoMessage

func (*PublicKey) ProtoMessage()

func (*PublicKey) ProtoReflect

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

func (*PublicKey) Reset

func (x *PublicKey) Reset()

func (*PublicKey) String

func (x *PublicKey) String() string

Jump to

Keyboard shortcuts

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