Help us shape the future of Go! Take the 2026 Go Developer Survey

internal

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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

func (*Bytes) GetData

func (m *Bytes) GetData() []byte

func (*Bytes) ProtoMessage

func (*Bytes) ProtoMessage()

func (*Bytes) Reset

func (m *Bytes) Reset()

func (*Bytes) String

func (m *Bytes) String() string

func (*Bytes) XXX_DiscardUnknown

func (m *Bytes) XXX_DiscardUnknown()

func (*Bytes) XXX_Marshal

func (m *Bytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Bytes) XXX_Merge

func (dst *Bytes) XXX_Merge(src proto.Message)

func (*Bytes) XXX_Size

func (m *Bytes) XXX_Size() int

func (*Bytes) XXX_Unmarshal

func (m *Bytes) XXX_Unmarshal(b []byte) error

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

func (*Hi) GetAddress

func (m *Hi) GetAddress() string

func (*Hi) GetId

func (m *Hi) GetId() []byte

func (*Hi) GetPublicKey

func (m *Hi) GetPublicKey() []byte

func (*Hi) ProtoMessage

func (*Hi) ProtoMessage()

func (*Hi) Reset

func (m *Hi) Reset()

func (*Hi) String

func (m *Hi) String() string

func (*Hi) XXX_DiscardUnknown

func (m *Hi) XXX_DiscardUnknown()

func (*Hi) XXX_Marshal

func (m *Hi) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Hi) XXX_Merge

func (dst *Hi) XXX_Merge(src proto.Message)

func (*Hi) XXX_Size

func (m *Hi) XXX_Size() int

func (*Hi) XXX_Unmarshal

func (m *Hi) XXX_Unmarshal(b []byte) error

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

func (*ID) GetAddress

func (m *ID) GetAddress() string

func (*ID) GetId

func (m *ID) GetId() []byte

func (*ID) GetPublicKey

func (m *ID) GetPublicKey() []byte

func (*ID) ProtoMessage

func (*ID) ProtoMessage()

func (*ID) Reset

func (m *ID) Reset()

func (*ID) String

func (m *ID) String() string

func (*ID) XXX_DiscardUnknown

func (m *ID) XXX_DiscardUnknown()

func (*ID) XXX_Marshal

func (m *ID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ID) XXX_Merge

func (dst *ID) XXX_Merge(src proto.Message)

func (*ID) XXX_Size

func (m *ID) XXX_Size() int

func (*ID) XXX_Unmarshal

func (m *ID) XXX_Unmarshal(b []byte) error

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

func (*Package) GetAnything

func (m *Package) GetAnything() *any.Any

func (*Package) GetMessageNonce

func (m *Package) GetMessageNonce() uint64

func (*Package) GetPubkey

func (m *Package) GetPubkey() []byte

func (*Package) GetReplyFlag

func (m *Package) GetReplyFlag() bool

func (*Package) GetRequestNonce

func (m *Package) GetRequestNonce() uint64

func (*Package) GetSender

func (m *Package) GetSender() *ID

func (*Package) GetSignature

func (m *Package) GetSignature() []byte

func (*Package) ProtoMessage

func (*Package) ProtoMessage()

func (*Package) Reset

func (m *Package) Reset()

func (*Package) String

func (m *Package) String() string

func (*Package) XXX_DiscardUnknown

func (m *Package) XXX_DiscardUnknown()

func (*Package) XXX_Marshal

func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Package) XXX_Merge

func (dst *Package) XXX_Merge(src proto.Message)

func (*Package) XXX_Size

func (m *Package) XXX_Size() int

func (*Package) XXX_Unmarshal

func (m *Package) XXX_Unmarshal(b []byte) error

type Ping

type Ping struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Ping) Descriptor

func (*Ping) Descriptor() ([]byte, []int)

func (*Ping) ProtoMessage

func (*Ping) ProtoMessage()

func (*Ping) Reset

func (m *Ping) Reset()

func (*Ping) String

func (m *Ping) String() string

func (*Ping) XXX_DiscardUnknown

func (m *Ping) XXX_DiscardUnknown()

func (*Ping) XXX_Marshal

func (m *Ping) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ping) XXX_Merge

func (dst *Ping) XXX_Merge(src proto.Message)

func (*Ping) XXX_Size

func (m *Ping) XXX_Size() int

func (*Ping) XXX_Unmarshal

func (m *Ping) XXX_Unmarshal(b []byte) error

type Pong

type Pong struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Pong) Descriptor

func (*Pong) Descriptor() ([]byte, []int)

func (*Pong) ProtoMessage

func (*Pong) ProtoMessage()

func (*Pong) Reset

func (m *Pong) Reset()

func (*Pong) String

func (m *Pong) String() string

func (*Pong) XXX_DiscardUnknown

func (m *Pong) XXX_DiscardUnknown()

func (*Pong) XXX_Marshal

func (m *Pong) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Pong) XXX_Merge

func (dst *Pong) XXX_Merge(src proto.Message)

func (*Pong) XXX_Size

func (m *Pong) XXX_Size() int

func (*Pong) XXX_Unmarshal

func (m *Pong) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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