queryproto

package
v23.0.10-iavl-v1 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package queryproto 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 RegisterQueryHandler

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

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 cosmossdk_io_math.LegacyDec `` /* 155-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 cosmossdk_io_math.LegacyDec `` /* 155-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 GeometricTwapRequest

type GeometricTwapRequest 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 (*GeometricTwapRequest) Descriptor

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

func (*GeometricTwapRequest) GetBaseAsset

func (m *GeometricTwapRequest) GetBaseAsset() string

func (*GeometricTwapRequest) GetEndTime

func (m *GeometricTwapRequest) GetEndTime() *time.Time

func (*GeometricTwapRequest) GetPoolId

func (m *GeometricTwapRequest) GetPoolId() uint64

func (*GeometricTwapRequest) GetQuoteAsset

func (m *GeometricTwapRequest) GetQuoteAsset() string

func (*GeometricTwapRequest) GetStartTime

func (m *GeometricTwapRequest) GetStartTime() time.Time

func (*GeometricTwapRequest) Marshal

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

func (*GeometricTwapRequest) MarshalTo

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

func (*GeometricTwapRequest) MarshalToSizedBuffer

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

func (*GeometricTwapRequest) ProtoMessage

func (*GeometricTwapRequest) ProtoMessage()

func (*GeometricTwapRequest) Reset

func (m *GeometricTwapRequest) Reset()

func (*GeometricTwapRequest) Size

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

func (*GeometricTwapRequest) String

func (m *GeometricTwapRequest) String() string

func (*GeometricTwapRequest) Unmarshal

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

func (*GeometricTwapRequest) XXX_DiscardUnknown

func (m *GeometricTwapRequest) XXX_DiscardUnknown()

func (*GeometricTwapRequest) XXX_Marshal

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

func (*GeometricTwapRequest) XXX_Merge

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

func (*GeometricTwapRequest) XXX_Size

func (m *GeometricTwapRequest) XXX_Size() int

func (*GeometricTwapRequest) XXX_Unmarshal

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

type GeometricTwapResponse

type GeometricTwapResponse struct {
	GeometricTwap cosmossdk_io_math.LegacyDec `` /* 151-byte string literal not displayed */
}

func (*GeometricTwapResponse) Descriptor

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

func (*GeometricTwapResponse) Marshal

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

func (*GeometricTwapResponse) MarshalTo

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

func (*GeometricTwapResponse) MarshalToSizedBuffer

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

func (*GeometricTwapResponse) ProtoMessage

func (*GeometricTwapResponse) ProtoMessage()

func (*GeometricTwapResponse) Reset

func (m *GeometricTwapResponse) Reset()

func (*GeometricTwapResponse) Size

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

func (*GeometricTwapResponse) String

func (m *GeometricTwapResponse) String() string

func (*GeometricTwapResponse) Unmarshal

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

func (*GeometricTwapResponse) XXX_DiscardUnknown

func (m *GeometricTwapResponse) XXX_DiscardUnknown()

func (*GeometricTwapResponse) XXX_Marshal

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

func (*GeometricTwapResponse) XXX_Merge

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

func (*GeometricTwapResponse) XXX_Size

func (m *GeometricTwapResponse) XXX_Size() int

func (*GeometricTwapResponse) XXX_Unmarshal

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

type GeometricTwapToNowRequest

type GeometricTwapToNowRequest 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 (*GeometricTwapToNowRequest) Descriptor

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

func (*GeometricTwapToNowRequest) GetBaseAsset

func (m *GeometricTwapToNowRequest) GetBaseAsset() string

func (*GeometricTwapToNowRequest) GetPoolId

func (m *GeometricTwapToNowRequest) GetPoolId() uint64

func (*GeometricTwapToNowRequest) GetQuoteAsset

func (m *GeometricTwapToNowRequest) GetQuoteAsset() string

func (*GeometricTwapToNowRequest) GetStartTime

func (m *GeometricTwapToNowRequest) GetStartTime() time.Time

func (*GeometricTwapToNowRequest) Marshal

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

func (*GeometricTwapToNowRequest) MarshalTo

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

func (*GeometricTwapToNowRequest) MarshalToSizedBuffer

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

func (*GeometricTwapToNowRequest) ProtoMessage

func (*GeometricTwapToNowRequest) ProtoMessage()

func (*GeometricTwapToNowRequest) Reset

func (m *GeometricTwapToNowRequest) Reset()

func (*GeometricTwapToNowRequest) Size

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

func (*GeometricTwapToNowRequest) String

func (m *GeometricTwapToNowRequest) String() string

func (*GeometricTwapToNowRequest) Unmarshal

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

func (*GeometricTwapToNowRequest) XXX_DiscardUnknown

func (m *GeometricTwapToNowRequest) XXX_DiscardUnknown()

func (*GeometricTwapToNowRequest) XXX_Marshal

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

func (*GeometricTwapToNowRequest) XXX_Merge

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

func (*GeometricTwapToNowRequest) XXX_Size

func (m *GeometricTwapToNowRequest) XXX_Size() int

func (*GeometricTwapToNowRequest) XXX_Unmarshal

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

type GeometricTwapToNowResponse

type GeometricTwapToNowResponse struct {
	GeometricTwap cosmossdk_io_math.LegacyDec `` /* 151-byte string literal not displayed */
}

func (*GeometricTwapToNowResponse) Descriptor

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

func (*GeometricTwapToNowResponse) Marshal

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

func (*GeometricTwapToNowResponse) MarshalTo

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

func (*GeometricTwapToNowResponse) MarshalToSizedBuffer

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

func (*GeometricTwapToNowResponse) ProtoMessage

func (*GeometricTwapToNowResponse) ProtoMessage()

func (*GeometricTwapToNowResponse) Reset

func (m *GeometricTwapToNowResponse) Reset()

func (*GeometricTwapToNowResponse) Size

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

func (*GeometricTwapToNowResponse) String

func (m *GeometricTwapToNowResponse) String() string

func (*GeometricTwapToNowResponse) Unmarshal

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

func (*GeometricTwapToNowResponse) XXX_DiscardUnknown

func (m *GeometricTwapToNowResponse) XXX_DiscardUnknown()

func (*GeometricTwapToNowResponse) XXX_Marshal

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

func (*GeometricTwapToNowResponse) XXX_Merge

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

func (*GeometricTwapToNowResponse) XXX_Size

func (m *GeometricTwapToNowResponse) XXX_Size() int

func (*GeometricTwapToNowResponse) XXX_Unmarshal

func (m *GeometricTwapToNowResponse) 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) MarshalTo

func (m *ParamsRequest) MarshalTo(dAtA []byte) (int, 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 types.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() types.Params

func (*ParamsResponse) Marshal

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

func (*ParamsResponse) MarshalTo

func (m *ParamsResponse) MarshalTo(dAtA []byte) (int, 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)
	GeometricTwap(ctx context.Context, in *GeometricTwapRequest, opts ...grpc.CallOption) (*GeometricTwapResponse, error)
	GeometricTwapToNow(ctx context.Context, in *GeometricTwapToNowRequest, opts ...grpc.CallOption) (*GeometricTwapToNowResponse, 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

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) ArithmeticTwapToNow

func (*UnimplementedQueryServer) GeometricTwap

func (*UnimplementedQueryServer) GeometricTwapToNow

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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