tmservice

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package tmservice is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterGRPCGatewayRoutes

func RegisterGRPCGatewayRoutes(clientConn gogogrpc.ClientConn, mux *runtime.ServeMux)

RegisterGRPCGatewayRoutes mounts the tendermint service's GRPC-gateway routes on the given Mux.

func RegisterServiceHandler

func RegisterServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterServiceHandler registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterServiceHandlerClient

func RegisterServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ServiceClient) error

RegisterServiceHandlerClient registers the http handlers for service Service to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ServiceClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ServiceClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ServiceClient" to call the correct interceptors.

func RegisterServiceHandlerFromEndpoint

func RegisterServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterServiceHandlerFromEndpoint is same as RegisterServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterServiceHandlerServer

func RegisterServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ServiceServer) error

RegisterServiceHandlerServer registers the http handlers for service Service to "mux". UnaryRPC :call ServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterServiceHandlerFromEndpoint instead.

func RegisterServiceServer

func RegisterServiceServer(s grpc1.Server, srv ServiceServer)

func RegisterTendermintService

func RegisterTendermintService(
	qrt gogogrpc.Server,
	clientCtx client.Context,
	interfaceRegistry codectypes.InterfaceRegistry,
)

RegisterTendermintService registers the tendermint queries on the gRPC router.

Types

type GetBlockByHeightRequest

type GetBlockByHeightRequest struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
}

GetBlockByHeightRequest is the request type for the Query/GetBlockByHeight RPC method.

func (*GetBlockByHeightRequest) Descriptor

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

func (*GetBlockByHeightRequest) GetHeight

func (m *GetBlockByHeightRequest) GetHeight() int64

func (*GetBlockByHeightRequest) Marshal

func (m *GetBlockByHeightRequest) Marshal() (dAtA []byte, err error)

func (*GetBlockByHeightRequest) MarshalTo

func (m *GetBlockByHeightRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetBlockByHeightRequest) MarshalToSizedBuffer

func (m *GetBlockByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetBlockByHeightRequest) ProtoMessage

func (*GetBlockByHeightRequest) ProtoMessage()

func (*GetBlockByHeightRequest) Reset

func (m *GetBlockByHeightRequest) Reset()

func (*GetBlockByHeightRequest) Size

func (m *GetBlockByHeightRequest) Size() (n int)

func (*GetBlockByHeightRequest) String

func (m *GetBlockByHeightRequest) String() string

func (*GetBlockByHeightRequest) Unmarshal

func (m *GetBlockByHeightRequest) Unmarshal(dAtA []byte) error

func (*GetBlockByHeightRequest) XXX_DiscardUnknown

func (m *GetBlockByHeightRequest) XXX_DiscardUnknown()

func (*GetBlockByHeightRequest) XXX_Marshal

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

func (*GetBlockByHeightRequest) XXX_Merge

func (m *GetBlockByHeightRequest) XXX_Merge(src proto.Message)

func (*GetBlockByHeightRequest) XXX_Size

func (m *GetBlockByHeightRequest) XXX_Size() int

func (*GetBlockByHeightRequest) XXX_Unmarshal

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

type GetBlockByHeightResponse

type GetBlockByHeightResponse struct {
	BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	Block   *types1.Block   `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
}

GetBlockByHeightResponse is the response type for the Query/GetBlockByHeight RPC method.

func (*GetBlockByHeightResponse) Descriptor

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

func (*GetBlockByHeightResponse) GetBlock

func (m *GetBlockByHeightResponse) GetBlock() *types1.Block

func (*GetBlockByHeightResponse) GetBlockId

func (m *GetBlockByHeightResponse) GetBlockId() *types1.BlockID

func (*GetBlockByHeightResponse) Marshal

func (m *GetBlockByHeightResponse) Marshal() (dAtA []byte, err error)

func (*GetBlockByHeightResponse) MarshalTo

func (m *GetBlockByHeightResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetBlockByHeightResponse) MarshalToSizedBuffer

func (m *GetBlockByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetBlockByHeightResponse) ProtoMessage

func (*GetBlockByHeightResponse) ProtoMessage()

func (*GetBlockByHeightResponse) Reset

func (m *GetBlockByHeightResponse) Reset()

func (*GetBlockByHeightResponse) Size

func (m *GetBlockByHeightResponse) Size() (n int)

func (*GetBlockByHeightResponse) String

func (m *GetBlockByHeightResponse) String() string

func (*GetBlockByHeightResponse) Unmarshal

func (m *GetBlockByHeightResponse) Unmarshal(dAtA []byte) error

func (*GetBlockByHeightResponse) XXX_DiscardUnknown

func (m *GetBlockByHeightResponse) XXX_DiscardUnknown()

func (*GetBlockByHeightResponse) XXX_Marshal

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

func (*GetBlockByHeightResponse) XXX_Merge

func (m *GetBlockByHeightResponse) XXX_Merge(src proto.Message)

func (*GetBlockByHeightResponse) XXX_Size

func (m *GetBlockByHeightResponse) XXX_Size() int

func (*GetBlockByHeightResponse) XXX_Unmarshal

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

type GetLatestBlockRequest

type GetLatestBlockRequest struct {
}

GetLatestBlockRequest is the request type for the Query/GetLatestBlock RPC method.

func (*GetLatestBlockRequest) Descriptor

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

func (*GetLatestBlockRequest) Marshal

func (m *GetLatestBlockRequest) Marshal() (dAtA []byte, err error)

func (*GetLatestBlockRequest) MarshalTo

func (m *GetLatestBlockRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetLatestBlockRequest) MarshalToSizedBuffer

func (m *GetLatestBlockRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetLatestBlockRequest) ProtoMessage

func (*GetLatestBlockRequest) ProtoMessage()

func (*GetLatestBlockRequest) Reset

func (m *GetLatestBlockRequest) Reset()

func (*GetLatestBlockRequest) Size

func (m *GetLatestBlockRequest) Size() (n int)

func (*GetLatestBlockRequest) String

func (m *GetLatestBlockRequest) String() string

func (*GetLatestBlockRequest) Unmarshal

func (m *GetLatestBlockRequest) Unmarshal(dAtA []byte) error

func (*GetLatestBlockRequest) XXX_DiscardUnknown

func (m *GetLatestBlockRequest) XXX_DiscardUnknown()

func (*GetLatestBlockRequest) XXX_Marshal

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

func (*GetLatestBlockRequest) XXX_Merge

func (m *GetLatestBlockRequest) XXX_Merge(src proto.Message)

func (*GetLatestBlockRequest) XXX_Size

func (m *GetLatestBlockRequest) XXX_Size() int

func (*GetLatestBlockRequest) XXX_Unmarshal

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

type GetLatestBlockResponse

type GetLatestBlockResponse struct {
	BlockId *types1.BlockID `protobuf:"bytes,1,opt,name=block_id,json=blockId,proto3" json:"block_id,omitempty"`
	Block   *types1.Block   `protobuf:"bytes,2,opt,name=block,proto3" json:"block,omitempty"`
}

GetLatestBlockResponse is the response type for the Query/GetLatestBlock RPC method.

func (*GetLatestBlockResponse) Descriptor

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

func (*GetLatestBlockResponse) GetBlock

func (m *GetLatestBlockResponse) GetBlock() *types1.Block

func (*GetLatestBlockResponse) GetBlockId

func (m *GetLatestBlockResponse) GetBlockId() *types1.BlockID

func (*GetLatestBlockResponse) Marshal

func (m *GetLatestBlockResponse) Marshal() (dAtA []byte, err error)

func (*GetLatestBlockResponse) MarshalTo

func (m *GetLatestBlockResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetLatestBlockResponse) MarshalToSizedBuffer

func (m *GetLatestBlockResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetLatestBlockResponse) ProtoMessage

func (*GetLatestBlockResponse) ProtoMessage()

func (*GetLatestBlockResponse) Reset

func (m *GetLatestBlockResponse) Reset()

func (*GetLatestBlockResponse) Size

func (m *GetLatestBlockResponse) Size() (n int)

func (*GetLatestBlockResponse) String

func (m *GetLatestBlockResponse) String() string

func (*GetLatestBlockResponse) Unmarshal

func (m *GetLatestBlockResponse) Unmarshal(dAtA []byte) error

func (*GetLatestBlockResponse) XXX_DiscardUnknown

func (m *GetLatestBlockResponse) XXX_DiscardUnknown()

func (*GetLatestBlockResponse) XXX_Marshal

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

func (*GetLatestBlockResponse) XXX_Merge

func (m *GetLatestBlockResponse) XXX_Merge(src proto.Message)

func (*GetLatestBlockResponse) XXX_Size

func (m *GetLatestBlockResponse) XXX_Size() int

func (*GetLatestBlockResponse) XXX_Unmarshal

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

type GetLatestValidatorSetRequest

type GetLatestValidatorSetRequest struct {
	// pagination defines an pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

GetLatestValidatorSetRequest is the request type for the Query/GetValidatorSetByHeight RPC method.

func (*GetLatestValidatorSetRequest) Descriptor

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

func (*GetLatestValidatorSetRequest) GetPagination

func (m *GetLatestValidatorSetRequest) GetPagination() *query.PageRequest

func (*GetLatestValidatorSetRequest) Marshal

func (m *GetLatestValidatorSetRequest) Marshal() (dAtA []byte, err error)

func (*GetLatestValidatorSetRequest) MarshalTo

func (m *GetLatestValidatorSetRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetLatestValidatorSetRequest) MarshalToSizedBuffer

func (m *GetLatestValidatorSetRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetLatestValidatorSetRequest) ProtoMessage

func (*GetLatestValidatorSetRequest) ProtoMessage()

func (*GetLatestValidatorSetRequest) Reset

func (m *GetLatestValidatorSetRequest) Reset()

func (*GetLatestValidatorSetRequest) Size

func (m *GetLatestValidatorSetRequest) Size() (n int)

func (*GetLatestValidatorSetRequest) String

func (*GetLatestValidatorSetRequest) Unmarshal

func (m *GetLatestValidatorSetRequest) Unmarshal(dAtA []byte) error

func (*GetLatestValidatorSetRequest) XXX_DiscardUnknown

func (m *GetLatestValidatorSetRequest) XXX_DiscardUnknown()

func (*GetLatestValidatorSetRequest) XXX_Marshal

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

func (*GetLatestValidatorSetRequest) XXX_Merge

func (m *GetLatestValidatorSetRequest) XXX_Merge(src proto.Message)

func (*GetLatestValidatorSetRequest) XXX_Size

func (m *GetLatestValidatorSetRequest) XXX_Size() int

func (*GetLatestValidatorSetRequest) XXX_Unmarshal

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

type GetLatestValidatorSetResponse

type GetLatestValidatorSetResponse struct {
	BlockHeight int64        `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Validators  []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
	// pagination defines an pagination for the response.
	Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

GetLatestValidatorSetResponse is the response type for the Query/GetValidatorSetByHeight RPC method.

func (*GetLatestValidatorSetResponse) Descriptor

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

func (*GetLatestValidatorSetResponse) GetBlockHeight

func (m *GetLatestValidatorSetResponse) GetBlockHeight() int64

func (*GetLatestValidatorSetResponse) GetPagination

func (m *GetLatestValidatorSetResponse) GetPagination() *query.PageResponse

func (*GetLatestValidatorSetResponse) GetValidators

func (m *GetLatestValidatorSetResponse) GetValidators() []*Validator

func (*GetLatestValidatorSetResponse) Marshal

func (m *GetLatestValidatorSetResponse) Marshal() (dAtA []byte, err error)

func (*GetLatestValidatorSetResponse) MarshalTo

func (m *GetLatestValidatorSetResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetLatestValidatorSetResponse) MarshalToSizedBuffer

func (m *GetLatestValidatorSetResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetLatestValidatorSetResponse) ProtoMessage

func (*GetLatestValidatorSetResponse) ProtoMessage()

func (*GetLatestValidatorSetResponse) Reset

func (m *GetLatestValidatorSetResponse) Reset()

func (*GetLatestValidatorSetResponse) Size

func (m *GetLatestValidatorSetResponse) Size() (n int)

func (*GetLatestValidatorSetResponse) String

func (*GetLatestValidatorSetResponse) Unmarshal

func (m *GetLatestValidatorSetResponse) Unmarshal(dAtA []byte) error

func (*GetLatestValidatorSetResponse) UnpackInterfaces

func (m *GetLatestValidatorSetResponse) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (*GetLatestValidatorSetResponse) XXX_DiscardUnknown

func (m *GetLatestValidatorSetResponse) XXX_DiscardUnknown()

func (*GetLatestValidatorSetResponse) XXX_Marshal

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

func (*GetLatestValidatorSetResponse) XXX_Merge

func (m *GetLatestValidatorSetResponse) XXX_Merge(src proto.Message)

func (*GetLatestValidatorSetResponse) XXX_Size

func (m *GetLatestValidatorSetResponse) XXX_Size() int

func (*GetLatestValidatorSetResponse) XXX_Unmarshal

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

type GetNodeInfoRequest

type GetNodeInfoRequest struct {
}

GetNodeInfoRequest is the request type for the Query/GetNodeInfo RPC method.

func (*GetNodeInfoRequest) Descriptor

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

func (*GetNodeInfoRequest) Marshal

func (m *GetNodeInfoRequest) Marshal() (dAtA []byte, err error)

func (*GetNodeInfoRequest) MarshalTo

func (m *GetNodeInfoRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetNodeInfoRequest) MarshalToSizedBuffer

func (m *GetNodeInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetNodeInfoRequest) ProtoMessage

func (*GetNodeInfoRequest) ProtoMessage()

func (*GetNodeInfoRequest) Reset

func (m *GetNodeInfoRequest) Reset()

func (*GetNodeInfoRequest) Size

func (m *GetNodeInfoRequest) Size() (n int)

func (*GetNodeInfoRequest) String

func (m *GetNodeInfoRequest) String() string

func (*GetNodeInfoRequest) Unmarshal

func (m *GetNodeInfoRequest) Unmarshal(dAtA []byte) error

func (*GetNodeInfoRequest) XXX_DiscardUnknown

func (m *GetNodeInfoRequest) XXX_DiscardUnknown()

func (*GetNodeInfoRequest) XXX_Marshal

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

func (*GetNodeInfoRequest) XXX_Merge

func (m *GetNodeInfoRequest) XXX_Merge(src proto.Message)

func (*GetNodeInfoRequest) XXX_Size

func (m *GetNodeInfoRequest) XXX_Size() int

func (*GetNodeInfoRequest) XXX_Unmarshal

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

type GetNodeInfoResponse

type GetNodeInfoResponse struct {
	DefaultNodeInfo    *p2p.DefaultNodeInfo `protobuf:"bytes,1,opt,name=default_node_info,json=defaultNodeInfo,proto3" json:"default_node_info,omitempty"`
	ApplicationVersion *VersionInfo         `protobuf:"bytes,2,opt,name=application_version,json=applicationVersion,proto3" json:"application_version,omitempty"`
}

GetNodeInfoResponse is the request type for the Query/GetNodeInfo RPC method.

func (*GetNodeInfoResponse) Descriptor

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

func (*GetNodeInfoResponse) GetApplicationVersion

func (m *GetNodeInfoResponse) GetApplicationVersion() *VersionInfo

func (*GetNodeInfoResponse) GetDefaultNodeInfo

func (m *GetNodeInfoResponse) GetDefaultNodeInfo() *p2p.DefaultNodeInfo

func (*GetNodeInfoResponse) Marshal

func (m *GetNodeInfoResponse) Marshal() (dAtA []byte, err error)

func (*GetNodeInfoResponse) MarshalTo

func (m *GetNodeInfoResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetNodeInfoResponse) MarshalToSizedBuffer

func (m *GetNodeInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetNodeInfoResponse) ProtoMessage

func (*GetNodeInfoResponse) ProtoMessage()

func (*GetNodeInfoResponse) Reset

func (m *GetNodeInfoResponse) Reset()

func (*GetNodeInfoResponse) Size

func (m *GetNodeInfoResponse) Size() (n int)

func (*GetNodeInfoResponse) String

func (m *GetNodeInfoResponse) String() string

func (*GetNodeInfoResponse) Unmarshal

func (m *GetNodeInfoResponse) Unmarshal(dAtA []byte) error

func (*GetNodeInfoResponse) XXX_DiscardUnknown

func (m *GetNodeInfoResponse) XXX_DiscardUnknown()

func (*GetNodeInfoResponse) XXX_Marshal

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

func (*GetNodeInfoResponse) XXX_Merge

func (m *GetNodeInfoResponse) XXX_Merge(src proto.Message)

func (*GetNodeInfoResponse) XXX_Size

func (m *GetNodeInfoResponse) XXX_Size() int

func (*GetNodeInfoResponse) XXX_Unmarshal

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

type GetSyncingRequest

type GetSyncingRequest struct {
}

GetSyncingRequest is the request type for the Query/GetSyncing RPC method.

func (*GetSyncingRequest) Descriptor

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

func (*GetSyncingRequest) Marshal

func (m *GetSyncingRequest) Marshal() (dAtA []byte, err error)

func (*GetSyncingRequest) MarshalTo

func (m *GetSyncingRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetSyncingRequest) MarshalToSizedBuffer

func (m *GetSyncingRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetSyncingRequest) ProtoMessage

func (*GetSyncingRequest) ProtoMessage()

func (*GetSyncingRequest) Reset

func (m *GetSyncingRequest) Reset()

func (*GetSyncingRequest) Size

func (m *GetSyncingRequest) Size() (n int)

func (*GetSyncingRequest) String

func (m *GetSyncingRequest) String() string

func (*GetSyncingRequest) Unmarshal

func (m *GetSyncingRequest) Unmarshal(dAtA []byte) error

func (*GetSyncingRequest) XXX_DiscardUnknown

func (m *GetSyncingRequest) XXX_DiscardUnknown()

func (*GetSyncingRequest) XXX_Marshal

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

func (*GetSyncingRequest) XXX_Merge

func (m *GetSyncingRequest) XXX_Merge(src proto.Message)

func (*GetSyncingRequest) XXX_Size

func (m *GetSyncingRequest) XXX_Size() int

func (*GetSyncingRequest) XXX_Unmarshal

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

type GetSyncingResponse

type GetSyncingResponse struct {
	Syncing bool `protobuf:"varint,1,opt,name=syncing,proto3" json:"syncing,omitempty"`
}

GetSyncingResponse is the response type for the Query/GetSyncing RPC method.

func (*GetSyncingResponse) Descriptor

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

func (*GetSyncingResponse) GetSyncing

func (m *GetSyncingResponse) GetSyncing() bool

func (*GetSyncingResponse) Marshal

func (m *GetSyncingResponse) Marshal() (dAtA []byte, err error)

func (*GetSyncingResponse) MarshalTo

func (m *GetSyncingResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetSyncingResponse) MarshalToSizedBuffer

func (m *GetSyncingResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetSyncingResponse) ProtoMessage

func (*GetSyncingResponse) ProtoMessage()

func (*GetSyncingResponse) Reset

func (m *GetSyncingResponse) Reset()

func (*GetSyncingResponse) Size

func (m *GetSyncingResponse) Size() (n int)

func (*GetSyncingResponse) String

func (m *GetSyncingResponse) String() string

func (*GetSyncingResponse) Unmarshal

func (m *GetSyncingResponse) Unmarshal(dAtA []byte) error

func (*GetSyncingResponse) XXX_DiscardUnknown

func (m *GetSyncingResponse) XXX_DiscardUnknown()

func (*GetSyncingResponse) XXX_Marshal

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

func (*GetSyncingResponse) XXX_Merge

func (m *GetSyncingResponse) XXX_Merge(src proto.Message)

func (*GetSyncingResponse) XXX_Size

func (m *GetSyncingResponse) XXX_Size() int

func (*GetSyncingResponse) XXX_Unmarshal

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

type GetValidatorSetByHeightRequest

type GetValidatorSetByHeightRequest struct {
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// pagination defines an pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

GetValidatorSetByHeightRequest is the request type for the Query/GetValidatorSetByHeight RPC method.

func (*GetValidatorSetByHeightRequest) Descriptor

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

func (*GetValidatorSetByHeightRequest) GetHeight

func (m *GetValidatorSetByHeightRequest) GetHeight() int64

func (*GetValidatorSetByHeightRequest) GetPagination

func (m *GetValidatorSetByHeightRequest) GetPagination() *query.PageRequest

func (*GetValidatorSetByHeightRequest) Marshal

func (m *GetValidatorSetByHeightRequest) Marshal() (dAtA []byte, err error)

func (*GetValidatorSetByHeightRequest) MarshalTo

func (m *GetValidatorSetByHeightRequest) MarshalTo(dAtA []byte) (int, error)

func (*GetValidatorSetByHeightRequest) MarshalToSizedBuffer

func (m *GetValidatorSetByHeightRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetValidatorSetByHeightRequest) ProtoMessage

func (*GetValidatorSetByHeightRequest) ProtoMessage()

func (*GetValidatorSetByHeightRequest) Reset

func (m *GetValidatorSetByHeightRequest) Reset()

func (*GetValidatorSetByHeightRequest) Size

func (m *GetValidatorSetByHeightRequest) Size() (n int)

func (*GetValidatorSetByHeightRequest) String

func (*GetValidatorSetByHeightRequest) Unmarshal

func (m *GetValidatorSetByHeightRequest) Unmarshal(dAtA []byte) error

func (*GetValidatorSetByHeightRequest) XXX_DiscardUnknown

func (m *GetValidatorSetByHeightRequest) XXX_DiscardUnknown()

func (*GetValidatorSetByHeightRequest) XXX_Marshal

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

func (*GetValidatorSetByHeightRequest) XXX_Merge

func (m *GetValidatorSetByHeightRequest) XXX_Merge(src proto.Message)

func (*GetValidatorSetByHeightRequest) XXX_Size

func (m *GetValidatorSetByHeightRequest) XXX_Size() int

func (*GetValidatorSetByHeightRequest) XXX_Unmarshal

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

type GetValidatorSetByHeightResponse

type GetValidatorSetByHeightResponse struct {
	BlockHeight int64        `protobuf:"varint,1,opt,name=block_height,json=blockHeight,proto3" json:"block_height,omitempty"`
	Validators  []*Validator `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
	// pagination defines an pagination for the response.
	Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

GetValidatorSetByHeightResponse is the response type for the Query/GetValidatorSetByHeight RPC method.

func (*GetValidatorSetByHeightResponse) Descriptor

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

func (*GetValidatorSetByHeightResponse) GetBlockHeight

func (m *GetValidatorSetByHeightResponse) GetBlockHeight() int64

func (*GetValidatorSetByHeightResponse) GetPagination

func (*GetValidatorSetByHeightResponse) GetValidators

func (m *GetValidatorSetByHeightResponse) GetValidators() []*Validator

func (*GetValidatorSetByHeightResponse) Marshal

func (m *GetValidatorSetByHeightResponse) Marshal() (dAtA []byte, err error)

func (*GetValidatorSetByHeightResponse) MarshalTo

func (m *GetValidatorSetByHeightResponse) MarshalTo(dAtA []byte) (int, error)

func (*GetValidatorSetByHeightResponse) MarshalToSizedBuffer

func (m *GetValidatorSetByHeightResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GetValidatorSetByHeightResponse) ProtoMessage

func (*GetValidatorSetByHeightResponse) ProtoMessage()

func (*GetValidatorSetByHeightResponse) Reset

func (*GetValidatorSetByHeightResponse) Size

func (m *GetValidatorSetByHeightResponse) Size() (n int)

func (*GetValidatorSetByHeightResponse) String

func (*GetValidatorSetByHeightResponse) Unmarshal

func (m *GetValidatorSetByHeightResponse) Unmarshal(dAtA []byte) error

func (*GetValidatorSetByHeightResponse) XXX_DiscardUnknown

func (m *GetValidatorSetByHeightResponse) XXX_DiscardUnknown()

func (*GetValidatorSetByHeightResponse) XXX_Marshal

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

func (*GetValidatorSetByHeightResponse) XXX_Merge

func (m *GetValidatorSetByHeightResponse) XXX_Merge(src proto.Message)

func (*GetValidatorSetByHeightResponse) XXX_Size

func (m *GetValidatorSetByHeightResponse) XXX_Size() int

func (*GetValidatorSetByHeightResponse) XXX_Unmarshal

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

type Module

type Module struct {
	// module path
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// module version
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
	// checksum
	Sum string `protobuf:"bytes,3,opt,name=sum,proto3" json:"sum,omitempty"`
}

Module is the type for VersionInfo

func (*Module) Descriptor

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

func (*Module) GetPath

func (m *Module) GetPath() string

func (*Module) GetSum

func (m *Module) GetSum() string

func (*Module) GetVersion

func (m *Module) GetVersion() string

func (*Module) Marshal

func (m *Module) Marshal() (dAtA []byte, err error)

func (*Module) MarshalTo

func (m *Module) MarshalTo(dAtA []byte) (int, error)

func (*Module) MarshalToSizedBuffer

func (m *Module) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Module) ProtoMessage

func (*Module) ProtoMessage()

func (*Module) Reset

func (m *Module) Reset()

func (*Module) Size

func (m *Module) Size() (n int)

func (*Module) String

func (m *Module) String() string

func (*Module) Unmarshal

func (m *Module) Unmarshal(dAtA []byte) error

func (*Module) XXX_DiscardUnknown

func (m *Module) XXX_DiscardUnknown()

func (*Module) XXX_Marshal

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

func (*Module) XXX_Merge

func (m *Module) XXX_Merge(src proto.Message)

func (*Module) XXX_Size

func (m *Module) XXX_Size() int

func (*Module) XXX_Unmarshal

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

type ServiceClient

type ServiceClient interface {
	// GetNodeInfo queries the current node info.
	GetNodeInfo(ctx context.Context, in *GetNodeInfoRequest, opts ...grpc.CallOption) (*GetNodeInfoResponse, error)
	// GetSyncing queries node syncing.
	GetSyncing(ctx context.Context, in *GetSyncingRequest, opts ...grpc.CallOption) (*GetSyncingResponse, error)
	// GetLatestBlock returns the latest block.
	GetLatestBlock(ctx context.Context, in *GetLatestBlockRequest, opts ...grpc.CallOption) (*GetLatestBlockResponse, error)
	// GetBlockByHeight queries block for given height.
	GetBlockByHeight(ctx context.Context, in *GetBlockByHeightRequest, opts ...grpc.CallOption) (*GetBlockByHeightResponse, error)
	// GetLatestValidatorSet queries latest validator-set.
	GetLatestValidatorSet(ctx context.Context, in *GetLatestValidatorSetRequest, opts ...grpc.CallOption) (*GetLatestValidatorSetResponse, error)
	// GetValidatorSetByHeight queries validator-set at a given height.
	GetValidatorSetByHeight(ctx context.Context, in *GetValidatorSetByHeightRequest, opts ...grpc.CallOption) (*GetValidatorSetByHeightResponse, error)
}

ServiceClient is the client API for Service service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewServiceClient

func NewServiceClient(cc grpc1.ClientConn) ServiceClient

type ServiceServer

type ServiceServer interface {
	// GetNodeInfo queries the current node info.
	GetNodeInfo(context.Context, *GetNodeInfoRequest) (*GetNodeInfoResponse, error)
	// GetSyncing queries node syncing.
	GetSyncing(context.Context, *GetSyncingRequest) (*GetSyncingResponse, error)
	// GetLatestBlock returns the latest block.
	GetLatestBlock(context.Context, *GetLatestBlockRequest) (*GetLatestBlockResponse, error)
	// GetBlockByHeight queries block for given height.
	GetBlockByHeight(context.Context, *GetBlockByHeightRequest) (*GetBlockByHeightResponse, error)
	// GetLatestValidatorSet queries latest validator-set.
	GetLatestValidatorSet(context.Context, *GetLatestValidatorSetRequest) (*GetLatestValidatorSetResponse, error)
	// GetValidatorSetByHeight queries validator-set at a given height.
	GetValidatorSetByHeight(context.Context, *GetValidatorSetByHeightRequest) (*GetValidatorSetByHeightResponse, error)
}

ServiceServer is the server API for Service service.

func NewQueryServer

func NewQueryServer(clientCtx client.Context, interfaceRegistry codectypes.InterfaceRegistry) ServiceServer

NewQueryServer creates a new tendermint query server.

type UnimplementedServiceServer

type UnimplementedServiceServer struct {
}

UnimplementedServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedServiceServer) GetBlockByHeight

func (*UnimplementedServiceServer) GetLatestBlock

func (*UnimplementedServiceServer) GetLatestValidatorSet

func (*UnimplementedServiceServer) GetNodeInfo

func (*UnimplementedServiceServer) GetSyncing

func (*UnimplementedServiceServer) GetValidatorSetByHeight

type Validator

type Validator struct {
	Address          string     `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	PubKey           *types.Any `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
	VotingPower      int64      `protobuf:"varint,3,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
	ProposerPriority int64      `protobuf:"varint,4,opt,name=proposer_priority,json=proposerPriority,proto3" json:"proposer_priority,omitempty"`
}

Validator is the type for the validator-set.

func (*Validator) Descriptor

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

func (*Validator) GetAddress

func (m *Validator) GetAddress() string

func (*Validator) GetProposerPriority

func (m *Validator) GetProposerPriority() int64

func (*Validator) GetPubKey

func (m *Validator) GetPubKey() *types.Any

func (*Validator) GetVotingPower

func (m *Validator) GetVotingPower() int64

func (*Validator) Marshal

func (m *Validator) Marshal() (dAtA []byte, err error)

func (*Validator) MarshalTo

func (m *Validator) MarshalTo(dAtA []byte) (int, error)

func (*Validator) MarshalToSizedBuffer

func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

func (m *Validator) Size() (n int)

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

func (m *Validator) Unmarshal(dAtA []byte) error

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

func (m *Validator) XXX_Merge(src proto.Message)

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

type VersionInfo

type VersionInfo struct {
	Name      string    `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	AppName   string    `protobuf:"bytes,2,opt,name=app_name,json=appName,proto3" json:"app_name,omitempty"`
	Version   string    `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
	GitCommit string    `protobuf:"bytes,4,opt,name=git_commit,json=gitCommit,proto3" json:"git_commit,omitempty"`
	BuildTags string    `protobuf:"bytes,5,opt,name=build_tags,json=buildTags,proto3" json:"build_tags,omitempty"`
	GoVersion string    `protobuf:"bytes,6,opt,name=go_version,json=goVersion,proto3" json:"go_version,omitempty"`
	BuildDeps []*Module `protobuf:"bytes,7,rep,name=build_deps,json=buildDeps,proto3" json:"build_deps,omitempty"`
}

VersionInfo is the type for the GetNodeInfoResponse message.

func (*VersionInfo) Descriptor

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

func (*VersionInfo) GetAppName

func (m *VersionInfo) GetAppName() string

func (*VersionInfo) GetBuildDeps

func (m *VersionInfo) GetBuildDeps() []*Module

func (*VersionInfo) GetBuildTags

func (m *VersionInfo) GetBuildTags() string

func (*VersionInfo) GetGitCommit

func (m *VersionInfo) GetGitCommit() string

func (*VersionInfo) GetGoVersion

func (m *VersionInfo) GetGoVersion() string

func (*VersionInfo) GetName

func (m *VersionInfo) GetName() string

func (*VersionInfo) GetVersion

func (m *VersionInfo) GetVersion() string

func (*VersionInfo) Marshal

func (m *VersionInfo) Marshal() (dAtA []byte, err error)

func (*VersionInfo) MarshalTo

func (m *VersionInfo) MarshalTo(dAtA []byte) (int, error)

func (*VersionInfo) MarshalToSizedBuffer

func (m *VersionInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VersionInfo) ProtoMessage

func (*VersionInfo) ProtoMessage()

func (*VersionInfo) Reset

func (m *VersionInfo) Reset()

func (*VersionInfo) Size

func (m *VersionInfo) Size() (n int)

func (*VersionInfo) String

func (m *VersionInfo) String() string

func (*VersionInfo) Unmarshal

func (m *VersionInfo) Unmarshal(dAtA []byte) error

func (*VersionInfo) XXX_DiscardUnknown

func (m *VersionInfo) XXX_DiscardUnknown()

func (*VersionInfo) XXX_Marshal

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

func (*VersionInfo) XXX_Merge

func (m *VersionInfo) XXX_Merge(src proto.Message)

func (*VersionInfo) XXX_Size

func (m *VersionInfo) XXX_Size() int

func (*VersionInfo) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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