protobuf

package
v0.0.0-...-868bdbc Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2020 License: AGPL-3.0 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 ChildBlock

type ChildBlock struct {
	SupervisorID           *ID        `protobuf:"bytes,1,opt,name=supervisorID,proto3" json:"supervisorID,omitempty"`
	Txs                    []byte     `protobuf:"bytes,2,opt,name=txs,proto3" json:"txs,omitempty"`
	NumTxs                 int64      `protobuf:"varint,3,opt,name=numTxs,proto3" json:"numTxs,omitempty"`
	Time                   *Timestamp `protobuf:"bytes,4,opt,name=time,proto3" json:"time,omitempty"`
	Signature              []byte     `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	ValidatorGroupHash     []byte     `protobuf:"bytes,6,opt,name=validatorGroupHash,proto3" json:"validatorGroupHash,omitempty"`
	NextValidatorGroupHash []byte     `protobuf:"bytes,7,opt,name=nextValidatorGroupHash,proto3" json:"nextValidatorGroupHash,omitempty"`
	XXX_NoUnkeyedLiteral   struct{}   `json:"-"`
	XXX_unrecognized       []byte     `json:"-"`
	XXX_sizecache          int32      `json:"-"`
}

func (*ChildBlock) Descriptor

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

func (*ChildBlock) GetNextValidatorGroupHash

func (m *ChildBlock) GetNextValidatorGroupHash() []byte

func (*ChildBlock) GetNumTxs

func (m *ChildBlock) GetNumTxs() int64

func (*ChildBlock) GetSignature

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

func (*ChildBlock) GetSupervisorID

func (m *ChildBlock) GetSupervisorID() *ID

func (*ChildBlock) GetTime

func (m *ChildBlock) GetTime() *Timestamp

func (*ChildBlock) GetTxs

func (m *ChildBlock) GetTxs() []byte

func (*ChildBlock) GetValidatorGroupHash

func (m *ChildBlock) GetValidatorGroupHash() []byte

func (*ChildBlock) ProtoMessage

func (*ChildBlock) ProtoMessage()

func (*ChildBlock) Reset

func (m *ChildBlock) Reset()

func (*ChildBlock) String

func (m *ChildBlock) String() string

func (*ChildBlock) XXX_DiscardUnknown

func (m *ChildBlock) XXX_DiscardUnknown()

func (*ChildBlock) XXX_Marshal

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

func (*ChildBlock) XXX_Merge

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

func (*ChildBlock) XXX_Size

func (m *ChildBlock) XXX_Size() int

func (*ChildBlock) XXX_Unmarshal

func (m *ChildBlock) 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 Message

type Message struct {
	Message []byte `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
	// Sender's address and public key.
	Sender *ID `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"`
	// Sender's signature of message.
	Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
	// request_nonce is the request/response ID. Null if ID associated to a message is not a request/response.
	RequestNonce uint64 `protobuf:"varint,4,opt,name=request_nonce,json=requestNonce,proto3" json:"request_nonce,omitempty"`
	// message_nonce is the sequence ID.
	MessageNonce uint64 `protobuf:"varint,5,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,6,opt,name=reply_flag,json=replyFlag,proto3" json:"reply_flag,omitempty"`
	// opcode specifies the message type
	Opcode               uint32   `protobuf:"varint,7,opt,name=opcode,proto3" json:"opcode,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Message) Descriptor

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

func (*Message) GetMessage

func (m *Message) GetMessage() []byte

func (*Message) GetMessageNonce

func (m *Message) GetMessageNonce() uint64

func (*Message) GetOpcode

func (m *Message) GetOpcode() uint32

func (*Message) GetReplyFlag

func (m *Message) GetReplyFlag() bool

func (*Message) GetRequestNonce

func (m *Message) GetRequestNonce() uint64

func (*Message) GetSender

func (m *Message) GetSender() *ID

func (*Message) GetSignature

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

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) Reset

func (m *Message) Reset()

func (*Message) String

func (m *Message) String() string

func (*Message) XXX_DiscardUnknown

func (m *Message) XXX_DiscardUnknown()

func (*Message) XXX_Marshal

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

func (*Message) XXX_Merge

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

func (*Message) XXX_Size

func (m *Message) XXX_Size() int

func (*Message) XXX_Unmarshal

func (m *Message) 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

type Timestamp

type Timestamp struct {
	Seconds              int64    `protobuf:"varint,1,opt,name=seconds,proto3" json:"seconds,omitempty"`
	Nanos                int32    `protobuf:"varint,2,opt,name=nanos,proto3" json:"nanos,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Timestamp wraps how amino encodes time. This is the protobuf well-known type protobuf/timestamp.proto See: https://github.com/google/protobuf/blob/d2980062c859649523d5fd51d6b55ab310e47482/src/google/protobuf/timestamp.proto#L123-L135 NOTE/XXX: nanos do not get skipped if they are zero in amino.

func (*Timestamp) Descriptor

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

func (*Timestamp) GetNanos

func (m *Timestamp) GetNanos() int32

func (*Timestamp) GetSeconds

func (m *Timestamp) GetSeconds() int64

func (*Timestamp) ProtoMessage

func (*Timestamp) ProtoMessage()

func (*Timestamp) Reset

func (m *Timestamp) Reset()

func (*Timestamp) String

func (m *Timestamp) String() string

func (*Timestamp) XXX_DiscardUnknown

func (m *Timestamp) XXX_DiscardUnknown()

func (*Timestamp) XXX_Marshal

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

func (*Timestamp) XXX_Merge

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

func (*Timestamp) XXX_Size

func (m *Timestamp) XXX_Size() int

func (*Timestamp) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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