v1

package
v0.0.0-...-6f15561 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Markets_TokenList_FullMethodName = "/markets.v1.Markets/TokenList"
)
View Source
const OperationMarketsTokenList = "/markets.v1.Markets/TokenList"

Variables

View Source
var (
	ErrorReason_name = map[int32]string{
		0: "TokenNotFound",
	}
	ErrorReason_value = map[string]int32{
		"TokenNotFound": 0,
	}
)

Enum value maps for ErrorReason.

View Source
var File_markets_v1_errors_proto protoreflect.FileDescriptor
View Source
var File_markets_v1_markets_proto protoreflect.FileDescriptor
View Source
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 ErrorTokenNotFound(format string, args ...interface{}) *errors.Error

func IsTokenNotFound

func IsTokenNotFound(err error) bool

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

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

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

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.

Jump to

Keyboard shortcuts

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