Documentation ¶
Overview ¶
Package v2 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterGRPCGatewayRoutes(clientConn grpc.ClientConn, mux *runtime.ServeMux)deprecated
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type GetGasPriceRequestdeprecated
- func (*GetGasPriceRequest) Descriptor() ([]byte, []int)
- func (m *GetGasPriceRequest) Marshal() (dAtA []byte, err error)
- func (m *GetGasPriceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GetGasPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetGasPriceRequest) ProtoMessage()
- func (m *GetGasPriceRequest) Reset()
- func (m *GetGasPriceRequest) Size() (n int)
- func (m *GetGasPriceRequest) String() string
- func (m *GetGasPriceRequest) Unmarshal(dAtA []byte) error
- func (m *GetGasPriceRequest) XXX_DiscardUnknown()
- func (m *GetGasPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetGasPriceRequest) XXX_Merge(src proto.Message)
- func (m *GetGasPriceRequest) XXX_Size() int
- func (m *GetGasPriceRequest) XXX_Unmarshal(b []byte) error
- type GetGasPriceResponsedeprecated
- func (*GetGasPriceResponse) Descriptor() ([]byte, []int)
- func (m *GetGasPriceResponse) GetGasPrices() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *GetGasPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *GetGasPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GetGasPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GetGasPriceResponse) ProtoMessage()
- func (m *GetGasPriceResponse) Reset()
- func (m *GetGasPriceResponse) Size() (n int)
- func (m *GetGasPriceResponse) String() string
- func (m *GetGasPriceResponse) Unmarshal(dAtA []byte) error
- func (m *GetGasPriceResponse) XXX_DiscardUnknown()
- func (m *GetGasPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GetGasPriceResponse) XXX_Merge(src proto.Message)
- func (m *GetGasPriceResponse) XXX_Size() int
- func (m *GetGasPriceResponse) XXX_Unmarshal(b []byte) error
- type Querierdeprecated
- type QueryClient
- type QueryServer
- type UnimplementedQueryServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterGRPCGatewayRoutes
deprecated
func RegisterGRPCGatewayRoutes(clientConn grpc.ClientConn, mux *runtime.ServeMux)
Deprecated: RegisterGRPCGatewayRoutes
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer 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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type GetGasPriceRequest
deprecated
type GetGasPriceRequest struct { }
Deprecated: after upgrade v4
func (*GetGasPriceRequest) Descriptor ¶
func (*GetGasPriceRequest) Descriptor() ([]byte, []int)
func (*GetGasPriceRequest) Marshal ¶
func (m *GetGasPriceRequest) Marshal() (dAtA []byte, err error)
func (*GetGasPriceRequest) MarshalTo ¶
func (m *GetGasPriceRequest) MarshalTo(dAtA []byte) (int, error)
func (*GetGasPriceRequest) MarshalToSizedBuffer ¶
func (m *GetGasPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetGasPriceRequest) ProtoMessage ¶
func (*GetGasPriceRequest) ProtoMessage()
func (*GetGasPriceRequest) Reset ¶
func (m *GetGasPriceRequest) Reset()
func (*GetGasPriceRequest) Size ¶
func (m *GetGasPriceRequest) Size() (n int)
func (*GetGasPriceRequest) String ¶
func (m *GetGasPriceRequest) String() string
func (*GetGasPriceRequest) Unmarshal ¶
func (m *GetGasPriceRequest) Unmarshal(dAtA []byte) error
func (*GetGasPriceRequest) XXX_DiscardUnknown ¶
func (m *GetGasPriceRequest) XXX_DiscardUnknown()
func (*GetGasPriceRequest) XXX_Marshal ¶
func (m *GetGasPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetGasPriceRequest) XXX_Merge ¶
func (m *GetGasPriceRequest) XXX_Merge(src proto.Message)
func (*GetGasPriceRequest) XXX_Size ¶
func (m *GetGasPriceRequest) XXX_Size() int
func (*GetGasPriceRequest) XXX_Unmarshal ¶
func (m *GetGasPriceRequest) XXX_Unmarshal(b []byte) error
type GetGasPriceResponse
deprecated
type GetGasPriceResponse struct {
GasPrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
}
Deprecated: after upgrade v4
func (*GetGasPriceResponse) Descriptor ¶
func (*GetGasPriceResponse) Descriptor() ([]byte, []int)
func (*GetGasPriceResponse) GetGasPrices ¶
func (m *GetGasPriceResponse) GetGasPrices() github_com_cosmos_cosmos_sdk_types.Coins
func (*GetGasPriceResponse) Marshal ¶
func (m *GetGasPriceResponse) Marshal() (dAtA []byte, err error)
func (*GetGasPriceResponse) MarshalTo ¶
func (m *GetGasPriceResponse) MarshalTo(dAtA []byte) (int, error)
func (*GetGasPriceResponse) MarshalToSizedBuffer ¶
func (m *GetGasPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GetGasPriceResponse) ProtoMessage ¶
func (*GetGasPriceResponse) ProtoMessage()
func (*GetGasPriceResponse) Reset ¶
func (m *GetGasPriceResponse) Reset()
func (*GetGasPriceResponse) Size ¶
func (m *GetGasPriceResponse) Size() (n int)
func (*GetGasPriceResponse) String ¶
func (m *GetGasPriceResponse) String() string
func (*GetGasPriceResponse) Unmarshal ¶
func (m *GetGasPriceResponse) Unmarshal(dAtA []byte) error
func (*GetGasPriceResponse) XXX_DiscardUnknown ¶
func (m *GetGasPriceResponse) XXX_DiscardUnknown()
func (*GetGasPriceResponse) XXX_Marshal ¶
func (m *GetGasPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GetGasPriceResponse) XXX_Merge ¶
func (m *GetGasPriceResponse) XXX_Merge(src proto.Message)
func (*GetGasPriceResponse) XXX_Size ¶
func (m *GetGasPriceResponse) XXX_Size() int
func (*GetGasPriceResponse) XXX_Unmarshal ¶
func (m *GetGasPriceResponse) XXX_Unmarshal(b []byte) error
type Querier
deprecated
type Querier struct{}
Deprecated: Querier
func (Querier) GetGasPrice
deprecated
func (q Querier) GetGasPrice(c context.Context, _ *GetGasPriceRequest) (*GetGasPriceResponse, error)
Deprecated: GetGasPrice
type QueryClient ¶
type QueryClient interface { // Deprecated: please use cosmos.base.node.v1beta1.Service.Config GetGasPrice(ctx context.Context, in *GetGasPriceRequest, opts ...grpc.CallOption) (*GetGasPriceResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryServer ¶
type QueryServer interface { // Deprecated: please use cosmos.base.node.v1beta1.Service.Config GetGasPrice(context.Context, *GetGasPriceRequest) (*GetGasPriceResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) GetGasPrice ¶
func (*UnimplementedQueryServer) GetGasPrice(ctx context.Context, req *GetGasPriceRequest) (*GetGasPriceResponse, error)