message

package
v0.0.28 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type ErrorResponse

type ErrorResponse struct {
	Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"`
	// contains filtered or unexported fields
}

func (*ErrorResponse) Descriptor deprecated

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

Deprecated: Use ErrorResponse.ProtoReflect.Descriptor instead.

func (*ErrorResponse) GetError

func (x *ErrorResponse) GetError() string

func (*ErrorResponse) ProtoMessage

func (*ErrorResponse) ProtoMessage()

func (*ErrorResponse) ProtoReflect

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

func (*ErrorResponse) Reset

func (x *ErrorResponse) Reset()

func (*ErrorResponse) String

func (x *ErrorResponse) String() string

type GetBlockHashesRequest

type GetBlockHashesRequest struct {
	Nums []uint64 `protobuf:"varint,1,rep,packed,name=nums,proto3" json:"nums,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockHashesRequest) Descriptor deprecated

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

Deprecated: Use GetBlockHashesRequest.ProtoReflect.Descriptor instead.

func (*GetBlockHashesRequest) GetNums

func (x *GetBlockHashesRequest) GetNums() []uint64

func (*GetBlockHashesRequest) ProtoMessage

func (*GetBlockHashesRequest) ProtoMessage()

func (*GetBlockHashesRequest) ProtoReflect

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

func (*GetBlockHashesRequest) Reset

func (x *GetBlockHashesRequest) Reset()

func (*GetBlockHashesRequest) String

func (x *GetBlockHashesRequest) String() string

type GetBlockHashesResponse

type GetBlockHashesResponse struct {
	Hashes [][]byte `protobuf:"bytes,1,rep,name=hashes,proto3" json:"hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockHashesResponse) Descriptor deprecated

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

Deprecated: Use GetBlockHashesResponse.ProtoReflect.Descriptor instead.

func (*GetBlockHashesResponse) GetHashes

func (x *GetBlockHashesResponse) GetHashes() [][]byte

func (*GetBlockHashesResponse) ProtoMessage

func (*GetBlockHashesResponse) ProtoMessage()

func (*GetBlockHashesResponse) ProtoReflect

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

func (*GetBlockHashesResponse) Reset

func (x *GetBlockHashesResponse) Reset()

func (*GetBlockHashesResponse) String

func (x *GetBlockHashesResponse) String() string

type GetBlockNumberRequest

type GetBlockNumberRequest struct {
	// contains filtered or unexported fields
}

func (*GetBlockNumberRequest) Descriptor deprecated

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

Deprecated: Use GetBlockNumberRequest.ProtoReflect.Descriptor instead.

func (*GetBlockNumberRequest) ProtoMessage

func (*GetBlockNumberRequest) ProtoMessage()

func (*GetBlockNumberRequest) ProtoReflect

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

func (*GetBlockNumberRequest) Reset

func (x *GetBlockNumberRequest) Reset()

func (*GetBlockNumberRequest) String

func (x *GetBlockNumberRequest) String() string

type GetBlockNumberResponse

type GetBlockNumberResponse struct {
	Number uint64 `protobuf:"varint,1,opt,name=number,proto3" json:"number,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlockNumberResponse) Descriptor deprecated

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

Deprecated: Use GetBlockNumberResponse.ProtoReflect.Descriptor instead.

func (*GetBlockNumberResponse) GetNumber

func (x *GetBlockNumberResponse) GetNumber() uint64

func (*GetBlockNumberResponse) ProtoMessage

func (*GetBlockNumberResponse) ProtoMessage()

func (*GetBlockNumberResponse) ProtoReflect

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

func (*GetBlockNumberResponse) Reset

func (x *GetBlockNumberResponse) Reset()

func (*GetBlockNumberResponse) String

func (x *GetBlockNumberResponse) String() string

type GetBlocksByHashesRequest

type GetBlocksByHashesRequest struct {
	BlockHashes [][]byte `protobuf:"bytes,1,rep,name=block_hashes,json=blockHashes,proto3" json:"block_hashes,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlocksByHashesRequest) Descriptor deprecated

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

Deprecated: Use GetBlocksByHashesRequest.ProtoReflect.Descriptor instead.

func (*GetBlocksByHashesRequest) GetBlockHashes

func (x *GetBlocksByHashesRequest) GetBlockHashes() [][]byte

func (*GetBlocksByHashesRequest) ProtoMessage

func (*GetBlocksByHashesRequest) ProtoMessage()

func (*GetBlocksByHashesRequest) ProtoReflect

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

func (*GetBlocksByHashesRequest) Reset

func (x *GetBlocksByHashesRequest) Reset()

func (*GetBlocksByHashesRequest) String

func (x *GetBlocksByHashesRequest) String() string

type GetBlocksByHashesResponse

type GetBlocksByHashesResponse struct {
	BlocksBytes [][]byte `protobuf:"bytes,1,rep,name=blocks_bytes,json=blocksBytes,proto3" json:"blocks_bytes,omitempty"`
	CommitSig   [][]byte `protobuf:"bytes,2,rep,name=commit_sig,json=commitSig,proto3" json:"commit_sig,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlocksByHashesResponse) Descriptor deprecated

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

Deprecated: Use GetBlocksByHashesResponse.ProtoReflect.Descriptor instead.

func (*GetBlocksByHashesResponse) GetBlocksBytes

func (x *GetBlocksByHashesResponse) GetBlocksBytes() [][]byte

func (*GetBlocksByHashesResponse) GetCommitSig

func (x *GetBlocksByHashesResponse) GetCommitSig() [][]byte

func (*GetBlocksByHashesResponse) ProtoMessage

func (*GetBlocksByHashesResponse) ProtoMessage()

func (*GetBlocksByHashesResponse) ProtoReflect

func (*GetBlocksByHashesResponse) Reset

func (x *GetBlocksByHashesResponse) Reset()

func (*GetBlocksByHashesResponse) String

func (x *GetBlocksByHashesResponse) String() string

type GetBlocksByNumRequest

type GetBlocksByNumRequest struct {
	Nums []uint64 `protobuf:"varint,1,rep,packed,name=nums,proto3" json:"nums,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlocksByNumRequest) Descriptor deprecated

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

Deprecated: Use GetBlocksByNumRequest.ProtoReflect.Descriptor instead.

func (*GetBlocksByNumRequest) GetNums

func (x *GetBlocksByNumRequest) GetNums() []uint64

func (*GetBlocksByNumRequest) ProtoMessage

func (*GetBlocksByNumRequest) ProtoMessage()

func (*GetBlocksByNumRequest) ProtoReflect

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

func (*GetBlocksByNumRequest) Reset

func (x *GetBlocksByNumRequest) Reset()

func (*GetBlocksByNumRequest) String

func (x *GetBlocksByNumRequest) String() string

type GetBlocksByNumResponse

type GetBlocksByNumResponse struct {
	BlocksBytes [][]byte `protobuf:"bytes,1,rep,name=blocks_bytes,json=blocksBytes,proto3" json:"blocks_bytes,omitempty"`
	CommitSig   [][]byte `protobuf:"bytes,2,rep,name=commit_sig,json=commitSig,proto3" json:"commit_sig,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBlocksByNumResponse) Descriptor deprecated

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

Deprecated: Use GetBlocksByNumResponse.ProtoReflect.Descriptor instead.

func (*GetBlocksByNumResponse) GetBlocksBytes

func (x *GetBlocksByNumResponse) GetBlocksBytes() [][]byte

func (*GetBlocksByNumResponse) GetCommitSig

func (x *GetBlocksByNumResponse) GetCommitSig() [][]byte

func (*GetBlocksByNumResponse) ProtoMessage

func (*GetBlocksByNumResponse) ProtoMessage()

func (*GetBlocksByNumResponse) ProtoReflect

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

func (*GetBlocksByNumResponse) Reset

func (x *GetBlocksByNumResponse) Reset()

func (*GetBlocksByNumResponse) String

func (x *GetBlocksByNumResponse) String() string

type Message

type Message struct {

	// Types that are assignable to ReqOrResp:
	//	*Message_Req
	//	*Message_Resp
	ReqOrResp isMessage_ReqOrResp `protobuf_oneof:"req_or_resp"`
	// contains filtered or unexported fields
}

func MakeErrorResponseMessage

func MakeErrorResponseMessage(rid uint64, err error) *Message

MakeErrorResponse makes the error response

func MakeGetBlockHashesResponseMessage

func MakeGetBlockHashesResponseMessage(rid uint64, hs []common.Hash) *Message

MakeGetBlockHashesResponseMessage makes the GetBlockHashes message

func MakeGetBlockNumberResponseMessage

func MakeGetBlockNumberResponseMessage(rid uint64, bn uint64) *Message

MakeGetBlockNumberResponseMessage makes the GetBlockNumber response message

func MakeGetBlocksByHashesResponseMessage

func MakeGetBlocksByHashesResponseMessage(rid uint64, blocksBytes, sigs [][]byte) *Message

MakeGetBlocksByHashesResponseMessage makes the GetBlocksByHashesResponse of Message type

func MakeGetBlocksByNumResponseMessage

func MakeGetBlocksByNumResponseMessage(rid uint64, blocksBytes, sigs [][]byte) *Message

MakeGetBlocksByNumResponseMessage makes the GetBlocksByNumResponse of Message type

func MakeMessageFromRequest

func MakeMessageFromRequest(req *Request) *Message

MakeMessageFromRequest makes a message from the request

func (*Message) Descriptor deprecated

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

Deprecated: Use Message.ProtoReflect.Descriptor instead.

func (*Message) GetBlockHashesResponse

func (msg *Message) GetBlockHashesResponse() (*GetBlockHashesResponse, error)

GetBlockHashesResponse parse the message to GetBlockHashesResponse

func (*Message) GetBlockNumberResponse

func (msg *Message) GetBlockNumberResponse() (*GetBlockNumberResponse, error)

GetBlockNumberResponse parse the message to GetBlockNumberResponse

func (*Message) GetBlocksByHashesResponse

func (msg *Message) GetBlocksByHashesResponse() (*GetBlocksByHashesResponse, error)

GetBlocksByHashesResponse parse the message to GetBlocksByHashesResponse

func (*Message) GetBlocksByNumberResponse

func (msg *Message) GetBlocksByNumberResponse() (*GetBlocksByNumResponse, error)

GetBlocksByNumberResponse parse the message to GetBlocksByNumberResponse

func (*Message) GetReq

func (x *Message) GetReq() *Request

func (*Message) GetReqOrResp

func (m *Message) GetReqOrResp() isMessage_ReqOrResp

func (*Message) GetResp

func (x *Message) GetResp() *Response

func (*Message) ProtoMessage

func (*Message) ProtoMessage()

func (*Message) ProtoReflect

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

func (*Message) Reset

func (x *Message) Reset()

func (*Message) String

func (x *Message) String() string

type Message_Req

type Message_Req struct {
	Req *Request `protobuf:"bytes,1,opt,name=req,proto3,oneof"`
}

type Message_Resp

type Message_Resp struct {
	Resp *Response `protobuf:"bytes,2,opt,name=resp,proto3,oneof"`
}

type Request

type Request struct {
	ReqId uint64 `protobuf:"varint,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
	// Types that are assignable to Request:
	//	*Request_GetBlockNumberRequest
	//	*Request_GetBlockHashesRequest
	//	*Request_GetBlocksByNumRequest
	//	*Request_GetBlocksByHashesRequest
	Request isRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func MakeGetBlockHashesRequest

func MakeGetBlockHashesRequest(bns []uint64) *Request

MakeGetBlockHashesRequest makes GetBlockHashes Request

func MakeGetBlockNumberRequest

func MakeGetBlockNumberRequest() *Request

MakeGetBlockNumberRequest makes the GetBlockNumber Request

func MakeGetBlocksByHashesRequest

func MakeGetBlocksByHashesRequest(hashes []common.Hash) *Request

MakeGetBlockByHashesRequest makes the GetBlocksByHashes request

func MakeGetBlocksByNumRequest

func MakeGetBlocksByNumRequest(bns []uint64) *Request

MakeGetBlocksByNumRequest makes the GetBlockByNumber request

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetGetBlockHashesRequest

func (x *Request) GetGetBlockHashesRequest() *GetBlockHashesRequest

func (*Request) GetGetBlockNumberRequest

func (x *Request) GetGetBlockNumberRequest() *GetBlockNumberRequest

func (*Request) GetGetBlocksByHashesRequest

func (x *Request) GetGetBlocksByHashesRequest() *GetBlocksByHashesRequest

func (*Request) GetGetBlocksByNumRequest

func (x *Request) GetGetBlocksByNumRequest() *GetBlocksByNumRequest

func (*Request) GetReqId

func (x *Request) GetReqId() uint64

func (*Request) GetRequest

func (m *Request) GetRequest() isRequest_Request

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Request_GetBlockHashesRequest

type Request_GetBlockHashesRequest struct {
	GetBlockHashesRequest *GetBlockHashesRequest `protobuf:"bytes,3,opt,name=get_block_hashes_request,json=getBlockHashesRequest,proto3,oneof"`
}

type Request_GetBlockNumberRequest

type Request_GetBlockNumberRequest struct {
	GetBlockNumberRequest *GetBlockNumberRequest `protobuf:"bytes,2,opt,name=get_block_number_request,json=getBlockNumberRequest,proto3,oneof"`
}

type Request_GetBlocksByHashesRequest

type Request_GetBlocksByHashesRequest struct {
	GetBlocksByHashesRequest *GetBlocksByHashesRequest `protobuf:"bytes,5,opt,name=get_blocks_by_hashes_request,json=getBlocksByHashesRequest,proto3,oneof"`
}

type Request_GetBlocksByNumRequest

type Request_GetBlocksByNumRequest struct {
	GetBlocksByNumRequest *GetBlocksByNumRequest `protobuf:"bytes,4,opt,name=get_blocks_by_num_request,json=getBlocksByNumRequest,proto3,oneof"`
}

type Response

type Response struct {
	ReqId uint64 `protobuf:"varint,1,opt,name=req_id,json=reqId,proto3" json:"req_id,omitempty"`
	// Types that are assignable to Response:
	//	*Response_ErrorResponse
	//	*Response_GetBlockNumberResponse
	//	*Response_GetBlockHashesResponse
	//	*Response_GetBlocksByNumResponse
	//	*Response_GetBlocksByHashesResponse
	Response isResponse_Response `protobuf_oneof:"response"`
	// contains filtered or unexported fields
}

func MakeErrorResponse

func MakeErrorResponse(rid uint64, err error) *Response

MakeErrorResponse makes the error response as a response

func MakeGetBlockHashesResponse

func MakeGetBlockHashesResponse(rid uint64, hs []common.Hash) *Response

MakeGetBlockHashesResponse makes the GetBlockHashes response

func MakeGetBlockNumberResponse

func MakeGetBlockNumberResponse(rid uint64, bn uint64) *Response

MakeGetBlockNumberResponse makes the GetBlockNumber response

func MakeGetBlocksByHashesResponse

func MakeGetBlocksByHashesResponse(rid uint64, blocksBytes [][]byte, sigs [][]byte) *Response

MakeGetBlocksByHashesResponse make the GetBlocksByHashesResponse of Response type

func MakeGetBlocksByNumResponse

func MakeGetBlocksByNumResponse(rid uint64, blocksBytes, sigs [][]byte) *Response

MakeGetBlocksByNumResponseMessage make the GetBlocksByNumResponse of Response type

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetErrorResponse

func (x *Response) GetErrorResponse() *ErrorResponse

func (*Response) GetGetBlockHashesResponse

func (x *Response) GetGetBlockHashesResponse() *GetBlockHashesResponse

func (*Response) GetGetBlockNumberResponse

func (x *Response) GetGetBlockNumberResponse() *GetBlockNumberResponse

func (*Response) GetGetBlocksByHashesResponse

func (x *Response) GetGetBlocksByHashesResponse() *GetBlocksByHashesResponse

func (*Response) GetGetBlocksByNumResponse

func (x *Response) GetGetBlocksByNumResponse() *GetBlocksByNumResponse

func (*Response) GetReqId

func (x *Response) GetReqId() uint64

func (*Response) GetResponse

func (m *Response) GetResponse() isResponse_Response

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

type ResponseError

type ResponseError struct {
	// contains filtered or unexported fields
}

ResponseError is the error from an error response

func (*ResponseError) Error

func (err *ResponseError) Error() string

Error is the error string of ResponseError

type Response_ErrorResponse

type Response_ErrorResponse struct {
	ErrorResponse *ErrorResponse `protobuf:"bytes,2,opt,name=error_response,json=errorResponse,proto3,oneof"`
}

type Response_GetBlockHashesResponse

type Response_GetBlockHashesResponse struct {
	GetBlockHashesResponse *GetBlockHashesResponse `protobuf:"bytes,4,opt,name=get_block_hashes_response,json=getBlockHashesResponse,proto3,oneof"`
}

type Response_GetBlockNumberResponse

type Response_GetBlockNumberResponse struct {
	GetBlockNumberResponse *GetBlockNumberResponse `protobuf:"bytes,3,opt,name=get_block_number_response,json=getBlockNumberResponse,proto3,oneof"`
}

type Response_GetBlocksByHashesResponse

type Response_GetBlocksByHashesResponse struct {
	GetBlocksByHashesResponse *GetBlocksByHashesResponse `protobuf:"bytes,6,opt,name=get_blocks_by_hashes_response,json=getBlocksByHashesResponse,proto3,oneof"`
}

type Response_GetBlocksByNumResponse

type Response_GetBlocksByNumResponse struct {
	GetBlocksByNumResponse *GetBlocksByNumResponse `protobuf:"bytes,5,opt,name=get_blocks_by_num_response,json=getBlocksByNumResponse,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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