Documentation ¶
Index ¶
- type Bytes
- func (*Bytes) Descriptor() ([]byte, []int)
- func (m *Bytes) GetData() []byte
- func (*Bytes) ProtoMessage()
- func (m *Bytes) Reset()
- func (m *Bytes) String() string
- func (m *Bytes) XXX_DiscardUnknown()
- func (m *Bytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Bytes) XXX_Merge(src proto.Message)
- func (m *Bytes) XXX_Size() int
- func (m *Bytes) XXX_Unmarshal(b []byte) error
- type Hi
- func (*Hi) Descriptor() ([]byte, []int)
- func (m *Hi) GetAddress() string
- func (m *Hi) GetId() []byte
- func (m *Hi) GetPublicKey() []byte
- func (*Hi) ProtoMessage()
- func (m *Hi) Reset()
- func (m *Hi) String() string
- func (m *Hi) XXX_DiscardUnknown()
- func (m *Hi) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Hi) XXX_Merge(src proto.Message)
- func (m *Hi) XXX_Size() int
- func (m *Hi) XXX_Unmarshal(b []byte) error
- type ID
- func (*ID) Descriptor() ([]byte, []int)
- func (m *ID) GetAddress() string
- func (m *ID) GetId() []byte
- func (m *ID) GetPublicKey() []byte
- func (*ID) ProtoMessage()
- func (m *ID) Reset()
- func (m *ID) String() string
- func (m *ID) XXX_DiscardUnknown()
- func (m *ID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *ID) XXX_Merge(src proto.Message)
- func (m *ID) XXX_Size() int
- func (m *ID) XXX_Unmarshal(b []byte) error
- type LookupNodeRequest
- func (*LookupNodeRequest) Descriptor() ([]byte, []int)
- func (m *LookupNodeRequest) GetTarget() *ID
- func (*LookupNodeRequest) ProtoMessage()
- func (m *LookupNodeRequest) Reset()
- func (m *LookupNodeRequest) String() string
- func (m *LookupNodeRequest) XXX_DiscardUnknown()
- func (m *LookupNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LookupNodeRequest) XXX_Merge(src proto.Message)
- func (m *LookupNodeRequest) XXX_Size() int
- func (m *LookupNodeRequest) XXX_Unmarshal(b []byte) error
- type LookupNodeResponse
- func (*LookupNodeResponse) Descriptor() ([]byte, []int)
- func (m *LookupNodeResponse) GetPeers() []*ID
- func (*LookupNodeResponse) ProtoMessage()
- func (m *LookupNodeResponse) Reset()
- func (m *LookupNodeResponse) String() string
- func (m *LookupNodeResponse) XXX_DiscardUnknown()
- func (m *LookupNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *LookupNodeResponse) XXX_Merge(src proto.Message)
- func (m *LookupNodeResponse) XXX_Size() int
- func (m *LookupNodeResponse) XXX_Unmarshal(b []byte) error
- type Package
- func (*Package) Descriptor() ([]byte, []int)
- func (m *Package) GetAnything() *any.Any
- func (m *Package) GetMessageNonce() uint64
- func (m *Package) GetPubkey() []byte
- func (m *Package) GetReplyFlag() bool
- func (m *Package) GetRequestNonce() uint64
- func (m *Package) GetSender() *ID
- func (m *Package) GetSignature() []byte
- func (*Package) ProtoMessage()
- func (m *Package) Reset()
- func (m *Package) String() string
- func (m *Package) XXX_DiscardUnknown()
- func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Package) XXX_Merge(src proto.Message)
- func (m *Package) XXX_Size() int
- func (m *Package) XXX_Unmarshal(b []byte) error
- type Ping
- func (*Ping) Descriptor() ([]byte, []int)
- func (*Ping) ProtoMessage()
- func (m *Ping) Reset()
- func (m *Ping) String() string
- func (m *Ping) XXX_DiscardUnknown()
- func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Ping) XXX_Merge(src proto.Message)
- func (m *Ping) XXX_Size() int
- func (m *Ping) XXX_Unmarshal(b []byte) error
- type Pong
- func (*Pong) Descriptor() ([]byte, []int)
- func (*Pong) ProtoMessage()
- func (m *Pong) Reset()
- func (m *Pong) String() string
- func (m *Pong) XXX_DiscardUnknown()
- func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (dst *Pong) XXX_Merge(src proto.Message)
- func (m *Pong) XXX_Size() int
- func (m *Pong) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bytes ¶
type Bytes struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Bytes) Descriptor ¶
func (*Bytes) ProtoMessage ¶
func (*Bytes) ProtoMessage()
func (*Bytes) XXX_DiscardUnknown ¶
func (m *Bytes) XXX_DiscardUnknown()
func (*Bytes) XXX_Marshal ¶
func (*Bytes) XXX_Unmarshal ¶
type Hi ¶
type Hi struct { // public_key of the peer (we no longer use the public key as the peer ID, but use it to verify messages) PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // address is the network address of the peer Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // id is the computed hash of the public key Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Hi) Descriptor ¶
func (*Hi) GetAddress ¶
func (*Hi) GetPublicKey ¶
func (*Hi) ProtoMessage ¶
func (*Hi) ProtoMessage()
func (*Hi) XXX_DiscardUnknown ¶
func (m *Hi) XXX_DiscardUnknown()
func (*Hi) XXX_Unmarshal ¶
type ID ¶
type ID struct { // public_key of the peer (we no longer use the public key as the peer ID, but use it to verify messages) PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // address is the network address of the peer Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // id is the computed hash of the public key Id []byte `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ID) Descriptor ¶
func (*ID) GetAddress ¶
func (*ID) GetPublicKey ¶
func (*ID) ProtoMessage ¶
func (*ID) ProtoMessage()
func (*ID) XXX_DiscardUnknown ¶
func (m *ID) XXX_DiscardUnknown()
func (*ID) XXX_Unmarshal ¶
type LookupNodeRequest ¶
type LookupNodeRequest struct { Target *ID `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LookupNodeRequest) Descriptor ¶
func (*LookupNodeRequest) Descriptor() ([]byte, []int)
func (*LookupNodeRequest) GetTarget ¶
func (m *LookupNodeRequest) GetTarget() *ID
func (*LookupNodeRequest) ProtoMessage ¶
func (*LookupNodeRequest) ProtoMessage()
func (*LookupNodeRequest) Reset ¶
func (m *LookupNodeRequest) Reset()
func (*LookupNodeRequest) String ¶
func (m *LookupNodeRequest) String() string
func (*LookupNodeRequest) XXX_DiscardUnknown ¶
func (m *LookupNodeRequest) XXX_DiscardUnknown()
func (*LookupNodeRequest) XXX_Marshal ¶
func (m *LookupNodeRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LookupNodeRequest) XXX_Merge ¶
func (dst *LookupNodeRequest) XXX_Merge(src proto.Message)
func (*LookupNodeRequest) XXX_Size ¶
func (m *LookupNodeRequest) XXX_Size() int
func (*LookupNodeRequest) XXX_Unmarshal ¶
func (m *LookupNodeRequest) XXX_Unmarshal(b []byte) error
type LookupNodeResponse ¶
type LookupNodeResponse struct { Peers []*ID `protobuf:"bytes,1,rep,name=peers,proto3" json:"peers,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LookupNodeResponse) Descriptor ¶
func (*LookupNodeResponse) Descriptor() ([]byte, []int)
func (*LookupNodeResponse) GetPeers ¶
func (m *LookupNodeResponse) GetPeers() []*ID
func (*LookupNodeResponse) ProtoMessage ¶
func (*LookupNodeResponse) ProtoMessage()
func (*LookupNodeResponse) Reset ¶
func (m *LookupNodeResponse) Reset()
func (*LookupNodeResponse) String ¶
func (m *LookupNodeResponse) String() string
func (*LookupNodeResponse) XXX_DiscardUnknown ¶
func (m *LookupNodeResponse) XXX_DiscardUnknown()
func (*LookupNodeResponse) XXX_Marshal ¶
func (m *LookupNodeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LookupNodeResponse) XXX_Merge ¶
func (dst *LookupNodeResponse) XXX_Merge(src proto.Message)
func (*LookupNodeResponse) XXX_Size ¶
func (m *LookupNodeResponse) XXX_Size() int
func (*LookupNodeResponse) XXX_Unmarshal ¶
func (m *LookupNodeResponse) XXX_Unmarshal(b []byte) error
type Package ¶
type Package struct { Anything *any.Any `protobuf:"bytes,1,opt,name=anything,proto3" json:"anything,omitempty"` Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // Sender's address and public key. Sender *ID `protobuf:"bytes,4,opt,name=sender,proto3" json:"sender,omitempty"` // request_nonce is the request/response ID. Null if ID associated to a message is not a request/response. RequestNonce uint64 `protobuf:"varint,5,opt,name=request_nonce,json=requestNonce,proto3" json:"request_nonce,omitempty"` // message_nonce is the sequence ID. MessageNonce uint64 `protobuf:"varint,6,opt,name=message_nonce,json=messageNonce,proto3" json:"message_nonce,omitempty"` // reply_flag indicates this is a reply to a request ReplyFlag bool `protobuf:"varint,7,opt,name=reply_flag,json=replyFlag,proto3" json:"reply_flag,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Package) Descriptor ¶
func (*Package) GetAnything ¶
func (*Package) GetMessageNonce ¶
func (*Package) GetReplyFlag ¶
func (*Package) GetRequestNonce ¶
func (*Package) GetSignature ¶
func (*Package) ProtoMessage ¶
func (*Package) ProtoMessage()
func (*Package) XXX_DiscardUnknown ¶
func (m *Package) XXX_DiscardUnknown()
func (*Package) XXX_Marshal ¶
func (*Package) XXX_Unmarshal ¶
type Ping ¶
type Ping struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Ping) Descriptor ¶
func (*Ping) ProtoMessage ¶
func (*Ping) ProtoMessage()
func (*Ping) XXX_DiscardUnknown ¶
func (m *Ping) XXX_DiscardUnknown()
func (*Ping) XXX_Unmarshal ¶
type Pong ¶
type Pong struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Pong) Descriptor ¶
func (*Pong) ProtoMessage ¶
func (*Pong) ProtoMessage()
func (*Pong) XXX_DiscardUnknown ¶
func (m *Pong) XXX_DiscardUnknown()
func (*Pong) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.