Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterGRPCGatewayRoutes(clientConn grpc.ClientConn, mux *runtime.ServeMux)
- 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 GasPriceRequestdeprecated
- func (*GasPriceRequest) Descriptor() ([]byte, []int)
- func (m *GasPriceRequest) Marshal() (dAtA []byte, err error)
- func (m *GasPriceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *GasPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GasPriceRequest) ProtoMessage()
- func (m *GasPriceRequest) Reset()
- func (m *GasPriceRequest) Size() (n int)
- func (m *GasPriceRequest) String() string
- func (m *GasPriceRequest) Unmarshal(dAtA []byte) error
- func (m *GasPriceRequest) XXX_DiscardUnknown()
- func (m *GasPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GasPriceRequest) XXX_Merge(src proto.Message)
- func (m *GasPriceRequest) XXX_Size() int
- func (m *GasPriceRequest) XXX_Unmarshal(b []byte) error
- type GasPriceResponsedeprecated
- func (*GasPriceResponse) Descriptor() ([]byte, []int)
- func (m *GasPriceResponse) GetGasPrices() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *GasPriceResponse) Marshal() (dAtA []byte, err error)
- func (m *GasPriceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *GasPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GasPriceResponse) ProtoMessage()
- func (m *GasPriceResponse) Reset()
- func (m *GasPriceResponse) Size() (n int)
- func (m *GasPriceResponse) String() string
- func (m *GasPriceResponse) Unmarshal(dAtA []byte) error
- func (m *GasPriceResponse) XXX_DiscardUnknown()
- func (m *GasPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GasPriceResponse) XXX_Merge(src proto.Message)
- func (m *GasPriceResponse) XXX_Size() int
- func (m *GasPriceResponse) XXX_Unmarshal(b []byte) error
- type Querier
- type QueryClient
- type QueryServer
- type UnimplementedQueryServer
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegisterGRPCGatewayRoutes ¶
func RegisterGRPCGatewayRoutes(clientConn grpc.ClientConn, mux *runtime.ServeMux)
RegisterGRPCGatewayRoutes Deprecated
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 GasPriceRequest
deprecated
type GasPriceRequest struct { }
Deprecated: GasPriceRequest
func (*GasPriceRequest) Descriptor ¶
func (*GasPriceRequest) Descriptor() ([]byte, []int)
func (*GasPriceRequest) Marshal ¶
func (m *GasPriceRequest) Marshal() (dAtA []byte, err error)
func (*GasPriceRequest) MarshalToSizedBuffer ¶
func (m *GasPriceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GasPriceRequest) ProtoMessage ¶
func (*GasPriceRequest) ProtoMessage()
func (*GasPriceRequest) Reset ¶
func (m *GasPriceRequest) Reset()
func (*GasPriceRequest) Size ¶
func (m *GasPriceRequest) Size() (n int)
func (*GasPriceRequest) String ¶
func (m *GasPriceRequest) String() string
func (*GasPriceRequest) Unmarshal ¶
func (m *GasPriceRequest) Unmarshal(dAtA []byte) error
func (*GasPriceRequest) XXX_DiscardUnknown ¶
func (m *GasPriceRequest) XXX_DiscardUnknown()
func (*GasPriceRequest) XXX_Marshal ¶
func (m *GasPriceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GasPriceRequest) XXX_Merge ¶
func (m *GasPriceRequest) XXX_Merge(src proto.Message)
func (*GasPriceRequest) XXX_Size ¶
func (m *GasPriceRequest) XXX_Size() int
func (*GasPriceRequest) XXX_Unmarshal ¶
func (m *GasPriceRequest) XXX_Unmarshal(b []byte) error
type GasPriceResponse
deprecated
type GasPriceResponse struct {
GasPrices github_com_cosmos_cosmos_sdk_types.Coins `` /* 150-byte string literal not displayed */
}
Deprecated: GasPriceResponse
func (*GasPriceResponse) Descriptor ¶
func (*GasPriceResponse) Descriptor() ([]byte, []int)
func (*GasPriceResponse) GetGasPrices ¶
func (m *GasPriceResponse) GetGasPrices() github_com_cosmos_cosmos_sdk_types.Coins
func (*GasPriceResponse) Marshal ¶
func (m *GasPriceResponse) Marshal() (dAtA []byte, err error)
func (*GasPriceResponse) MarshalToSizedBuffer ¶
func (m *GasPriceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GasPriceResponse) ProtoMessage ¶
func (*GasPriceResponse) ProtoMessage()
func (*GasPriceResponse) Reset ¶
func (m *GasPriceResponse) Reset()
func (*GasPriceResponse) Size ¶
func (m *GasPriceResponse) Size() (n int)
func (*GasPriceResponse) String ¶
func (m *GasPriceResponse) String() string
func (*GasPriceResponse) Unmarshal ¶
func (m *GasPriceResponse) Unmarshal(dAtA []byte) error
func (*GasPriceResponse) XXX_DiscardUnknown ¶
func (m *GasPriceResponse) XXX_DiscardUnknown()
func (*GasPriceResponse) XXX_Marshal ¶
func (m *GasPriceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GasPriceResponse) XXX_Merge ¶
func (m *GasPriceResponse) XXX_Merge(src proto.Message)
func (*GasPriceResponse) XXX_Size ¶
func (m *GasPriceResponse) XXX_Size() int
func (*GasPriceResponse) XXX_Unmarshal ¶
func (m *GasPriceResponse) XXX_Unmarshal(b []byte) error
type Querier ¶
type Querier struct{}
Querier Deprecated
func (Querier) FxGasPrice ¶
func (q Querier) FxGasPrice(ctx context.Context, request *GasPriceRequest) (*GasPriceResponse, error)
FxGasPrice Deprecated
func (Querier) GasPrice ¶
func (q Querier) GasPrice(c context.Context, _ *GasPriceRequest) (*GasPriceResponse, error)
GasPrice Deprecated
type QueryClient ¶
type QueryClient interface { // Deprecated: please use cosmos.base.node.v1beta1.Service.Config FxGasPrice(ctx context.Context, in *GasPriceRequest, opts ...grpc.CallOption) (*GasPriceResponse, error) // Deprecated: please use cosmos.base.node.v1beta1.Service.Config GasPrice(ctx context.Context, in *GasPriceRequest, opts ...grpc.CallOption) (*GasPriceResponse, 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 FxGasPrice(context.Context, *GasPriceRequest) (*GasPriceResponse, error) // Deprecated: please use cosmos.base.node.v1beta1.Service.Config GasPrice(context.Context, *GasPriceRequest) (*GasPriceResponse, 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) FxGasPrice ¶
func (*UnimplementedQueryServer) FxGasPrice(ctx context.Context, req *GasPriceRequest) (*GasPriceResponse, error)
func (*UnimplementedQueryServer) GasPrice ¶
func (*UnimplementedQueryServer) GasPrice(ctx context.Context, req *GasPriceRequest) (*GasPriceResponse, error)