Documentation ¶
Overview ¶
Package queryproto is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- 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 ArithmeticTwapRequest
- func (*ArithmeticTwapRequest) Descriptor() ([]byte, []int)
- func (m *ArithmeticTwapRequest) GetBaseAsset() string
- func (m *ArithmeticTwapRequest) GetEndTime() *time.Time
- func (m *ArithmeticTwapRequest) GetPoolId() uint64
- func (m *ArithmeticTwapRequest) GetQuoteAsset() string
- func (m *ArithmeticTwapRequest) GetStartTime() time.Time
- func (m *ArithmeticTwapRequest) Marshal() (dAtA []byte, err error)
- func (m *ArithmeticTwapRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ArithmeticTwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ArithmeticTwapRequest) ProtoMessage()
- func (m *ArithmeticTwapRequest) Reset()
- func (m *ArithmeticTwapRequest) Size() (n int)
- func (m *ArithmeticTwapRequest) String() string
- func (m *ArithmeticTwapRequest) Unmarshal(dAtA []byte) error
- func (m *ArithmeticTwapRequest) XXX_DiscardUnknown()
- func (m *ArithmeticTwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArithmeticTwapRequest) XXX_Merge(src proto.Message)
- func (m *ArithmeticTwapRequest) XXX_Size() int
- func (m *ArithmeticTwapRequest) XXX_Unmarshal(b []byte) error
- type ArithmeticTwapResponse
- func (*ArithmeticTwapResponse) Descriptor() ([]byte, []int)
- func (m *ArithmeticTwapResponse) Marshal() (dAtA []byte, err error)
- func (m *ArithmeticTwapResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ArithmeticTwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ArithmeticTwapResponse) ProtoMessage()
- func (m *ArithmeticTwapResponse) Reset()
- func (m *ArithmeticTwapResponse) Size() (n int)
- func (m *ArithmeticTwapResponse) String() string
- func (m *ArithmeticTwapResponse) Unmarshal(dAtA []byte) error
- func (m *ArithmeticTwapResponse) XXX_DiscardUnknown()
- func (m *ArithmeticTwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArithmeticTwapResponse) XXX_Merge(src proto.Message)
- func (m *ArithmeticTwapResponse) XXX_Size() int
- func (m *ArithmeticTwapResponse) XXX_Unmarshal(b []byte) error
- type ArithmeticTwapToNowRequest
- func (*ArithmeticTwapToNowRequest) Descriptor() ([]byte, []int)
- func (m *ArithmeticTwapToNowRequest) GetBaseAsset() string
- func (m *ArithmeticTwapToNowRequest) GetPoolId() uint64
- func (m *ArithmeticTwapToNowRequest) GetQuoteAsset() string
- func (m *ArithmeticTwapToNowRequest) GetStartTime() time.Time
- func (m *ArithmeticTwapToNowRequest) Marshal() (dAtA []byte, err error)
- func (m *ArithmeticTwapToNowRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ArithmeticTwapToNowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ArithmeticTwapToNowRequest) ProtoMessage()
- func (m *ArithmeticTwapToNowRequest) Reset()
- func (m *ArithmeticTwapToNowRequest) Size() (n int)
- func (m *ArithmeticTwapToNowRequest) String() string
- func (m *ArithmeticTwapToNowRequest) Unmarshal(dAtA []byte) error
- func (m *ArithmeticTwapToNowRequest) XXX_DiscardUnknown()
- func (m *ArithmeticTwapToNowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArithmeticTwapToNowRequest) XXX_Merge(src proto.Message)
- func (m *ArithmeticTwapToNowRequest) XXX_Size() int
- func (m *ArithmeticTwapToNowRequest) XXX_Unmarshal(b []byte) error
- type ArithmeticTwapToNowResponse
- func (*ArithmeticTwapToNowResponse) Descriptor() ([]byte, []int)
- func (m *ArithmeticTwapToNowResponse) Marshal() (dAtA []byte, err error)
- func (m *ArithmeticTwapToNowResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ArithmeticTwapToNowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ArithmeticTwapToNowResponse) ProtoMessage()
- func (m *ArithmeticTwapToNowResponse) Reset()
- func (m *ArithmeticTwapToNowResponse) Size() (n int)
- func (m *ArithmeticTwapToNowResponse) String() string
- func (m *ArithmeticTwapToNowResponse) Unmarshal(dAtA []byte) error
- func (m *ArithmeticTwapToNowResponse) XXX_DiscardUnknown()
- func (m *ArithmeticTwapToNowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ArithmeticTwapToNowResponse) XXX_Merge(src proto.Message)
- func (m *ArithmeticTwapToNowResponse) XXX_Size() int
- func (m *ArithmeticTwapToNowResponse) XXX_Unmarshal(b []byte) error
- type ParamsRequest
- func (*ParamsRequest) Descriptor() ([]byte, []int)
- func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsRequest) ProtoMessage()
- func (m *ParamsRequest) Reset()
- func (m *ParamsRequest) Size() (n int)
- func (m *ParamsRequest) String() string
- func (m *ParamsRequest) Unmarshal(dAtA []byte) error
- func (m *ParamsRequest) XXX_DiscardUnknown()
- func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsRequest) XXX_Merge(src proto.Message)
- func (m *ParamsRequest) XXX_Size() int
- func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
- type ParamsResponse
- func (*ParamsResponse) Descriptor() ([]byte, []int)
- func (m *ParamsResponse) GetParams() types1.Params
- func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ParamsResponse) ProtoMessage()
- func (m *ParamsResponse) Reset()
- func (m *ParamsResponse) Size() (n int)
- func (m *ParamsResponse) String() string
- func (m *ParamsResponse) Unmarshal(dAtA []byte) error
- func (m *ParamsResponse) XXX_DiscardUnknown()
- func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ParamsResponse) XXX_Merge(src proto.Message)
- func (m *ParamsResponse) XXX_Size() int
- func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) ArithmeticTwap(ctx context.Context, req *ArithmeticTwapRequest) (*ArithmeticTwapResponse, error)
- func (*UnimplementedQueryServer) ArithmeticTwapToNow(ctx context.Context, req *ArithmeticTwapToNowRequest) (*ArithmeticTwapToNowResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
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 ArithmeticTwapRequest ¶
type ArithmeticTwapRequest struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` BaseAsset string `protobuf:"bytes,2,opt,name=base_asset,json=baseAsset,proto3" json:"base_asset,omitempty"` QuoteAsset string `protobuf:"bytes,3,opt,name=quote_asset,json=quoteAsset,proto3" json:"quote_asset,omitempty"` StartTime time.Time `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` EndTime *time.Time `protobuf:"bytes,5,opt,name=end_time,json=endTime,proto3,stdtime" json:"end_time,omitempty" yaml:"end_time"` }
func (*ArithmeticTwapRequest) Descriptor ¶
func (*ArithmeticTwapRequest) Descriptor() ([]byte, []int)
func (*ArithmeticTwapRequest) GetBaseAsset ¶
func (m *ArithmeticTwapRequest) GetBaseAsset() string
func (*ArithmeticTwapRequest) GetEndTime ¶
func (m *ArithmeticTwapRequest) GetEndTime() *time.Time
func (*ArithmeticTwapRequest) GetPoolId ¶
func (m *ArithmeticTwapRequest) GetPoolId() uint64
func (*ArithmeticTwapRequest) GetQuoteAsset ¶
func (m *ArithmeticTwapRequest) GetQuoteAsset() string
func (*ArithmeticTwapRequest) GetStartTime ¶
func (m *ArithmeticTwapRequest) GetStartTime() time.Time
func (*ArithmeticTwapRequest) Marshal ¶
func (m *ArithmeticTwapRequest) Marshal() (dAtA []byte, err error)
func (*ArithmeticTwapRequest) MarshalTo ¶
func (m *ArithmeticTwapRequest) MarshalTo(dAtA []byte) (int, error)
func (*ArithmeticTwapRequest) MarshalToSizedBuffer ¶
func (m *ArithmeticTwapRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ArithmeticTwapRequest) ProtoMessage ¶
func (*ArithmeticTwapRequest) ProtoMessage()
func (*ArithmeticTwapRequest) Reset ¶
func (m *ArithmeticTwapRequest) Reset()
func (*ArithmeticTwapRequest) Size ¶
func (m *ArithmeticTwapRequest) Size() (n int)
func (*ArithmeticTwapRequest) String ¶
func (m *ArithmeticTwapRequest) String() string
func (*ArithmeticTwapRequest) Unmarshal ¶
func (m *ArithmeticTwapRequest) Unmarshal(dAtA []byte) error
func (*ArithmeticTwapRequest) XXX_DiscardUnknown ¶
func (m *ArithmeticTwapRequest) XXX_DiscardUnknown()
func (*ArithmeticTwapRequest) XXX_Marshal ¶
func (m *ArithmeticTwapRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArithmeticTwapRequest) XXX_Merge ¶
func (m *ArithmeticTwapRequest) XXX_Merge(src proto.Message)
func (*ArithmeticTwapRequest) XXX_Size ¶
func (m *ArithmeticTwapRequest) XXX_Size() int
func (*ArithmeticTwapRequest) XXX_Unmarshal ¶
func (m *ArithmeticTwapRequest) XXX_Unmarshal(b []byte) error
type ArithmeticTwapResponse ¶
type ArithmeticTwapResponse struct {
ArithmeticTwap github_com_cosmos_cosmos_sdk_types.Dec `` /* 166-byte string literal not displayed */
}
func (*ArithmeticTwapResponse) Descriptor ¶
func (*ArithmeticTwapResponse) Descriptor() ([]byte, []int)
func (*ArithmeticTwapResponse) Marshal ¶
func (m *ArithmeticTwapResponse) Marshal() (dAtA []byte, err error)
func (*ArithmeticTwapResponse) MarshalTo ¶
func (m *ArithmeticTwapResponse) MarshalTo(dAtA []byte) (int, error)
func (*ArithmeticTwapResponse) MarshalToSizedBuffer ¶
func (m *ArithmeticTwapResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ArithmeticTwapResponse) ProtoMessage ¶
func (*ArithmeticTwapResponse) ProtoMessage()
func (*ArithmeticTwapResponse) Reset ¶
func (m *ArithmeticTwapResponse) Reset()
func (*ArithmeticTwapResponse) Size ¶
func (m *ArithmeticTwapResponse) Size() (n int)
func (*ArithmeticTwapResponse) String ¶
func (m *ArithmeticTwapResponse) String() string
func (*ArithmeticTwapResponse) Unmarshal ¶
func (m *ArithmeticTwapResponse) Unmarshal(dAtA []byte) error
func (*ArithmeticTwapResponse) XXX_DiscardUnknown ¶
func (m *ArithmeticTwapResponse) XXX_DiscardUnknown()
func (*ArithmeticTwapResponse) XXX_Marshal ¶
func (m *ArithmeticTwapResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArithmeticTwapResponse) XXX_Merge ¶
func (m *ArithmeticTwapResponse) XXX_Merge(src proto.Message)
func (*ArithmeticTwapResponse) XXX_Size ¶
func (m *ArithmeticTwapResponse) XXX_Size() int
func (*ArithmeticTwapResponse) XXX_Unmarshal ¶
func (m *ArithmeticTwapResponse) XXX_Unmarshal(b []byte) error
type ArithmeticTwapToNowRequest ¶
type ArithmeticTwapToNowRequest struct { PoolId uint64 `protobuf:"varint,1,opt,name=pool_id,json=poolId,proto3" json:"pool_id,omitempty"` BaseAsset string `protobuf:"bytes,2,opt,name=base_asset,json=baseAsset,proto3" json:"base_asset,omitempty"` QuoteAsset string `protobuf:"bytes,3,opt,name=quote_asset,json=quoteAsset,proto3" json:"quote_asset,omitempty"` StartTime time.Time `protobuf:"bytes,4,opt,name=start_time,json=startTime,proto3,stdtime" json:"start_time" yaml:"start_time"` }
func (*ArithmeticTwapToNowRequest) Descriptor ¶
func (*ArithmeticTwapToNowRequest) Descriptor() ([]byte, []int)
func (*ArithmeticTwapToNowRequest) GetBaseAsset ¶
func (m *ArithmeticTwapToNowRequest) GetBaseAsset() string
func (*ArithmeticTwapToNowRequest) GetPoolId ¶
func (m *ArithmeticTwapToNowRequest) GetPoolId() uint64
func (*ArithmeticTwapToNowRequest) GetQuoteAsset ¶
func (m *ArithmeticTwapToNowRequest) GetQuoteAsset() string
func (*ArithmeticTwapToNowRequest) GetStartTime ¶
func (m *ArithmeticTwapToNowRequest) GetStartTime() time.Time
func (*ArithmeticTwapToNowRequest) Marshal ¶
func (m *ArithmeticTwapToNowRequest) Marshal() (dAtA []byte, err error)
func (*ArithmeticTwapToNowRequest) MarshalTo ¶
func (m *ArithmeticTwapToNowRequest) MarshalTo(dAtA []byte) (int, error)
func (*ArithmeticTwapToNowRequest) MarshalToSizedBuffer ¶
func (m *ArithmeticTwapToNowRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ArithmeticTwapToNowRequest) ProtoMessage ¶
func (*ArithmeticTwapToNowRequest) ProtoMessage()
func (*ArithmeticTwapToNowRequest) Reset ¶
func (m *ArithmeticTwapToNowRequest) Reset()
func (*ArithmeticTwapToNowRequest) Size ¶
func (m *ArithmeticTwapToNowRequest) Size() (n int)
func (*ArithmeticTwapToNowRequest) String ¶
func (m *ArithmeticTwapToNowRequest) String() string
func (*ArithmeticTwapToNowRequest) Unmarshal ¶
func (m *ArithmeticTwapToNowRequest) Unmarshal(dAtA []byte) error
func (*ArithmeticTwapToNowRequest) XXX_DiscardUnknown ¶
func (m *ArithmeticTwapToNowRequest) XXX_DiscardUnknown()
func (*ArithmeticTwapToNowRequest) XXX_Marshal ¶
func (m *ArithmeticTwapToNowRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArithmeticTwapToNowRequest) XXX_Merge ¶
func (m *ArithmeticTwapToNowRequest) XXX_Merge(src proto.Message)
func (*ArithmeticTwapToNowRequest) XXX_Size ¶
func (m *ArithmeticTwapToNowRequest) XXX_Size() int
func (*ArithmeticTwapToNowRequest) XXX_Unmarshal ¶
func (m *ArithmeticTwapToNowRequest) XXX_Unmarshal(b []byte) error
type ArithmeticTwapToNowResponse ¶
type ArithmeticTwapToNowResponse struct {
ArithmeticTwap github_com_cosmos_cosmos_sdk_types.Dec `` /* 166-byte string literal not displayed */
}
func (*ArithmeticTwapToNowResponse) Descriptor ¶
func (*ArithmeticTwapToNowResponse) Descriptor() ([]byte, []int)
func (*ArithmeticTwapToNowResponse) Marshal ¶
func (m *ArithmeticTwapToNowResponse) Marshal() (dAtA []byte, err error)
func (*ArithmeticTwapToNowResponse) MarshalTo ¶
func (m *ArithmeticTwapToNowResponse) MarshalTo(dAtA []byte) (int, error)
func (*ArithmeticTwapToNowResponse) MarshalToSizedBuffer ¶
func (m *ArithmeticTwapToNowResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ArithmeticTwapToNowResponse) ProtoMessage ¶
func (*ArithmeticTwapToNowResponse) ProtoMessage()
func (*ArithmeticTwapToNowResponse) Reset ¶
func (m *ArithmeticTwapToNowResponse) Reset()
func (*ArithmeticTwapToNowResponse) Size ¶
func (m *ArithmeticTwapToNowResponse) Size() (n int)
func (*ArithmeticTwapToNowResponse) String ¶
func (m *ArithmeticTwapToNowResponse) String() string
func (*ArithmeticTwapToNowResponse) Unmarshal ¶
func (m *ArithmeticTwapToNowResponse) Unmarshal(dAtA []byte) error
func (*ArithmeticTwapToNowResponse) XXX_DiscardUnknown ¶
func (m *ArithmeticTwapToNowResponse) XXX_DiscardUnknown()
func (*ArithmeticTwapToNowResponse) XXX_Marshal ¶
func (m *ArithmeticTwapToNowResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ArithmeticTwapToNowResponse) XXX_Merge ¶
func (m *ArithmeticTwapToNowResponse) XXX_Merge(src proto.Message)
func (*ArithmeticTwapToNowResponse) XXX_Size ¶
func (m *ArithmeticTwapToNowResponse) XXX_Size() int
func (*ArithmeticTwapToNowResponse) XXX_Unmarshal ¶
func (m *ArithmeticTwapToNowResponse) XXX_Unmarshal(b []byte) error
type ParamsRequest ¶
type ParamsRequest struct { }
func (*ParamsRequest) Descriptor ¶
func (*ParamsRequest) Descriptor() ([]byte, []int)
func (*ParamsRequest) Marshal ¶
func (m *ParamsRequest) Marshal() (dAtA []byte, err error)
func (*ParamsRequest) MarshalToSizedBuffer ¶
func (m *ParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsRequest) ProtoMessage ¶
func (*ParamsRequest) ProtoMessage()
func (*ParamsRequest) Reset ¶
func (m *ParamsRequest) Reset()
func (*ParamsRequest) Size ¶
func (m *ParamsRequest) Size() (n int)
func (*ParamsRequest) String ¶
func (m *ParamsRequest) String() string
func (*ParamsRequest) Unmarshal ¶
func (m *ParamsRequest) Unmarshal(dAtA []byte) error
func (*ParamsRequest) XXX_DiscardUnknown ¶
func (m *ParamsRequest) XXX_DiscardUnknown()
func (*ParamsRequest) XXX_Marshal ¶
func (m *ParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsRequest) XXX_Merge ¶
func (m *ParamsRequest) XXX_Merge(src proto.Message)
func (*ParamsRequest) XXX_Size ¶
func (m *ParamsRequest) XXX_Size() int
func (*ParamsRequest) XXX_Unmarshal ¶
func (m *ParamsRequest) XXX_Unmarshal(b []byte) error
type ParamsResponse ¶
type ParamsResponse struct {
Params types1.Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
func (*ParamsResponse) Descriptor ¶
func (*ParamsResponse) Descriptor() ([]byte, []int)
func (*ParamsResponse) GetParams ¶
func (m *ParamsResponse) GetParams() types1.Params
func (*ParamsResponse) Marshal ¶
func (m *ParamsResponse) Marshal() (dAtA []byte, err error)
func (*ParamsResponse) MarshalToSizedBuffer ¶
func (m *ParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ParamsResponse) ProtoMessage ¶
func (*ParamsResponse) ProtoMessage()
func (*ParamsResponse) Reset ¶
func (m *ParamsResponse) Reset()
func (*ParamsResponse) Size ¶
func (m *ParamsResponse) Size() (n int)
func (*ParamsResponse) String ¶
func (m *ParamsResponse) String() string
func (*ParamsResponse) Unmarshal ¶
func (m *ParamsResponse) Unmarshal(dAtA []byte) error
func (*ParamsResponse) XXX_DiscardUnknown ¶
func (m *ParamsResponse) XXX_DiscardUnknown()
func (*ParamsResponse) XXX_Marshal ¶
func (m *ParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ParamsResponse) XXX_Merge ¶
func (m *ParamsResponse) XXX_Merge(src proto.Message)
func (*ParamsResponse) XXX_Size ¶
func (m *ParamsResponse) XXX_Size() int
func (*ParamsResponse) XXX_Unmarshal ¶
func (m *ParamsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { Params(ctx context.Context, in *ParamsRequest, opts ...grpc.CallOption) (*ParamsResponse, error) ArithmeticTwap(ctx context.Context, in *ArithmeticTwapRequest, opts ...grpc.CallOption) (*ArithmeticTwapResponse, error) ArithmeticTwapToNow(ctx context.Context, in *ArithmeticTwapToNowRequest, opts ...grpc.CallOption) (*ArithmeticTwapToNowResponse, 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 { Params(context.Context, *ParamsRequest) (*ParamsResponse, error) ArithmeticTwap(context.Context, *ArithmeticTwapRequest) (*ArithmeticTwapResponse, error) ArithmeticTwapToNow(context.Context, *ArithmeticTwapToNowRequest) (*ArithmeticTwapToNowResponse, 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) ArithmeticTwap ¶
func (*UnimplementedQueryServer) ArithmeticTwap(ctx context.Context, req *ArithmeticTwapRequest) (*ArithmeticTwapResponse, error)
func (*UnimplementedQueryServer) ArithmeticTwapToNow ¶
func (*UnimplementedQueryServer) ArithmeticTwapToNow(ctx context.Context, req *ArithmeticTwapToNowRequest) (*ArithmeticTwapToNowResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *ParamsRequest) (*ParamsResponse, error)