Documentation ¶
Index ¶
- Constants
- Variables
- func ErrorTokenNotFound(format string, args ...interface{}) *errors.Error
- func IsTokenNotFound(err error) bool
- func RegisterMarketsHTTPServer(s *http.Server, srv MarketsHTTPServer)
- func RegisterMarketsServer(s grpc.ServiceRegistrar, srv MarketsServer)
- type ErrorReason
- func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
- func (x ErrorReason) Enum() *ErrorReason
- func (ErrorReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x ErrorReason) Number() protoreflect.EnumNumber
- func (x ErrorReason) String() string
- func (ErrorReason) Type() protoreflect.EnumType
- type MarketsClient
- type MarketsHTTPClient
- type MarketsHTTPClientImpl
- type MarketsHTTPServer
- type MarketsServer
- type TokenListRequest
- type TokenListResponse
- func (*TokenListResponse) Descriptor() ([]byte, []int)deprecated
- func (x *TokenListResponse) GetTokens() []*TokenReply
- func (x *TokenListResponse) GetTotalCount() int64
- func (*TokenListResponse) ProtoMessage()
- func (x *TokenListResponse) ProtoReflect() protoreflect.Message
- func (x *TokenListResponse) Reset()
- func (x *TokenListResponse) String() string
- type TokenReply
- func (*TokenReply) Descriptor() ([]byte, []int)deprecated
- func (x *TokenReply) GetPrice() string
- func (x *TokenReply) GetQuoteChange() string
- func (x *TokenReply) GetToken() string
- func (*TokenReply) ProtoMessage()
- func (x *TokenReply) ProtoReflect() protoreflect.Message
- func (x *TokenReply) Reset()
- func (x *TokenReply) String() string
- type UnimplementedMarketsServer
- type UnsafeMarketsServer
Constants ¶
const (
Markets_TokenList_FullMethodName = "/markets.v1.Markets/TokenList"
)
const OperationMarketsTokenList = "/markets.v1.Markets/TokenList"
Variables ¶
var ( ErrorReason_name = map[int32]string{ 0: "TokenNotFound", } ErrorReason_value = map[string]int32{ "TokenNotFound": 0, } )
Enum value maps for ErrorReason.
var File_markets_v1_errors_proto protoreflect.FileDescriptor
var File_markets_v1_markets_proto protoreflect.FileDescriptor
var Markets_ServiceDesc = grpc.ServiceDesc{ ServiceName: "markets.v1.Markets", HandlerType: (*MarketsServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "TokenList", Handler: _Markets_TokenList_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "markets/v1/markets.proto", }
Markets_ServiceDesc is the grpc.ServiceDesc for Markets service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func ErrorTokenNotFound ¶
func IsTokenNotFound ¶
func RegisterMarketsHTTPServer ¶
func RegisterMarketsHTTPServer(s *http.Server, srv MarketsHTTPServer)
func RegisterMarketsServer ¶
func RegisterMarketsServer(s grpc.ServiceRegistrar, srv MarketsServer)
Types ¶
type ErrorReason ¶
type ErrorReason int32
const (
ErrorReason_TokenNotFound ErrorReason = 0
)
func (ErrorReason) Descriptor ¶
func (ErrorReason) Descriptor() protoreflect.EnumDescriptor
func (ErrorReason) Enum ¶
func (x ErrorReason) Enum() *ErrorReason
func (ErrorReason) EnumDescriptor
deprecated
func (ErrorReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use ErrorReason.Descriptor instead.
func (ErrorReason) Number ¶
func (x ErrorReason) Number() protoreflect.EnumNumber
func (ErrorReason) String ¶
func (x ErrorReason) String() string
func (ErrorReason) Type ¶
func (ErrorReason) Type() protoreflect.EnumType
type MarketsClient ¶
type MarketsClient interface {
TokenList(ctx context.Context, in *TokenListRequest, opts ...grpc.CallOption) (*TokenListResponse, error)
}
MarketsClient is the client API for Markets service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMarketsClient ¶
func NewMarketsClient(cc grpc.ClientConnInterface) MarketsClient
type MarketsHTTPClient ¶
type MarketsHTTPClient interface {
TokenList(ctx context.Context, req *TokenListRequest, opts ...http.CallOption) (rsp *TokenListResponse, err error)
}
func NewMarketsHTTPClient ¶
func NewMarketsHTTPClient(client *http.Client) MarketsHTTPClient
type MarketsHTTPClientImpl ¶
type MarketsHTTPClientImpl struct {
// contains filtered or unexported fields
}
func (*MarketsHTTPClientImpl) TokenList ¶
func (c *MarketsHTTPClientImpl) TokenList(ctx context.Context, in *TokenListRequest, opts ...http.CallOption) (*TokenListResponse, error)
type MarketsHTTPServer ¶
type MarketsHTTPServer interface {
TokenList(context.Context, *TokenListRequest) (*TokenListResponse, error)
}
type MarketsServer ¶
type MarketsServer interface { TokenList(context.Context, *TokenListRequest) (*TokenListResponse, error) // contains filtered or unexported methods }
MarketsServer is the server API for Markets service. All implementations must embed UnimplementedMarketsServer for forward compatibility
type TokenListRequest ¶
type TokenListRequest struct { Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*TokenListRequest) Descriptor
deprecated
func (*TokenListRequest) Descriptor() ([]byte, []int)
Deprecated: Use TokenListRequest.ProtoReflect.Descriptor instead.
func (*TokenListRequest) GetKind ¶
func (x *TokenListRequest) GetKind() string
func (*TokenListRequest) ProtoMessage ¶
func (*TokenListRequest) ProtoMessage()
func (*TokenListRequest) ProtoReflect ¶
func (x *TokenListRequest) ProtoReflect() protoreflect.Message
func (*TokenListRequest) Reset ¶
func (x *TokenListRequest) Reset()
func (*TokenListRequest) String ¶
func (x *TokenListRequest) String() string
type TokenListResponse ¶
type TokenListResponse struct { TotalCount int64 `protobuf:"varint,1,opt,name=totalCount,proto3" json:"totalCount,omitempty"` Tokens []*TokenReply `protobuf:"bytes,2,rep,name=Tokens,proto3" json:"Tokens,omitempty"` // contains filtered or unexported fields }
func (*TokenListResponse) Descriptor
deprecated
func (*TokenListResponse) Descriptor() ([]byte, []int)
Deprecated: Use TokenListResponse.ProtoReflect.Descriptor instead.
func (*TokenListResponse) GetTokens ¶
func (x *TokenListResponse) GetTokens() []*TokenReply
func (*TokenListResponse) GetTotalCount ¶
func (x *TokenListResponse) GetTotalCount() int64
func (*TokenListResponse) ProtoMessage ¶
func (*TokenListResponse) ProtoMessage()
func (*TokenListResponse) ProtoReflect ¶
func (x *TokenListResponse) ProtoReflect() protoreflect.Message
func (*TokenListResponse) Reset ¶
func (x *TokenListResponse) Reset()
func (*TokenListResponse) String ¶
func (x *TokenListResponse) String() string
type TokenReply ¶
type TokenReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Price string `protobuf:"bytes,2,opt,name=price,proto3" json:"price,omitempty"` QuoteChange string `protobuf:"bytes,3,opt,name=quoteChange,proto3" json:"quoteChange,omitempty"` // contains filtered or unexported fields }
func (*TokenReply) Descriptor
deprecated
func (*TokenReply) Descriptor() ([]byte, []int)
Deprecated: Use TokenReply.ProtoReflect.Descriptor instead.
func (*TokenReply) GetPrice ¶
func (x *TokenReply) GetPrice() string
func (*TokenReply) GetQuoteChange ¶
func (x *TokenReply) GetQuoteChange() string
func (*TokenReply) GetToken ¶
func (x *TokenReply) GetToken() string
func (*TokenReply) ProtoMessage ¶
func (*TokenReply) ProtoMessage()
func (*TokenReply) ProtoReflect ¶
func (x *TokenReply) ProtoReflect() protoreflect.Message
func (*TokenReply) Reset ¶
func (x *TokenReply) Reset()
func (*TokenReply) String ¶
func (x *TokenReply) String() string
type UnimplementedMarketsServer ¶
type UnimplementedMarketsServer struct { }
UnimplementedMarketsServer must be embedded to have forward compatible implementations.
func (UnimplementedMarketsServer) TokenList ¶
func (UnimplementedMarketsServer) TokenList(context.Context, *TokenListRequest) (*TokenListResponse, error)
type UnsafeMarketsServer ¶
type UnsafeMarketsServer interface {
// contains filtered or unexported methods
}
UnsafeMarketsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MarketsServer will result in compilation errors.