Documentation
¶
Index ¶
- Variables
- func RegisterExchangePlotServer(s grpc.ServiceRegistrar, srv ExchangePlotServer)
- type AdditionalErrorCode
- func (AdditionalErrorCode) Descriptor() protoreflect.EnumDescriptor
- func (x AdditionalErrorCode) Enum() *AdditionalErrorCode
- func (AdditionalErrorCode) EnumDescriptor() ([]byte, []int)deprecated
- func (x AdditionalErrorCode) Number() protoreflect.EnumNumber
- func (x AdditionalErrorCode) String() string
- func (AdditionalErrorCode) Type() protoreflect.EnumType
- type ExchangePlotClient
- type ExchangePlotServer
- type Plot
- type PlotParams
- func (*PlotParams) Descriptor() ([]byte, []int)deprecated
- func (x *PlotParams) GetInterval() *TimeInterval
- func (x *PlotParams) GetPair() *converter.ConverterPair
- func (*PlotParams) ProtoMessage()
- func (x *PlotParams) ProtoReflect() protoreflect.Message
- func (x *PlotParams) Reset()
- func (x *PlotParams) String() string
- type TimeInterval
- func (*TimeInterval) Descriptor() ([]byte, []int)deprecated
- func (x *TimeInterval) GetEnd() *timestamppb.Timestamp
- func (x *TimeInterval) GetStart() *timestamppb.Timestamp
- func (*TimeInterval) ProtoMessage()
- func (x *TimeInterval) ProtoReflect() protoreflect.Message
- func (x *TimeInterval) Reset()
- func (x *TimeInterval) String() string
- type UnimplementedExchangePlotServer
- type UnsafeExchangePlotServer
Constants ¶
This section is empty.
Variables ¶
var ( AdditionalErrorCode_name = map[int32]string{ 0: "OK", 100: "INVALID_TIME_INTERVAL", 101: "INVALID_CONVERTER_PAIR", 102: "INVALID_FORMAT", 103: "INVALID_CURRENCY_CODE", 104: "INVALID_BANK_CODE", } AdditionalErrorCode_value = map[string]int32{ "OK": 0, "INVALID_TIME_INTERVAL": 100, "INVALID_CONVERTER_PAIR": 101, "INVALID_FORMAT": 102, "INVALID_CURRENCY_CODE": 103, "INVALID_BANK_CODE": 104, } )
Enum value maps for AdditionalErrorCode.
var ExchangePlot_ServiceDesc = grpc.ServiceDesc{ ServiceName: "binance_converter.backend_api.exchange_plot.exchangePlot", HandlerType: (*ExchangePlotServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetExchangePlot", Handler: _ExchangePlot_GetExchangePlot_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "proto/exchange_plot.proto", }
ExchangePlot_ServiceDesc is the grpc.ServiceDesc for ExchangePlot service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_proto_exchange_plot_proto protoreflect.FileDescriptor
Functions ¶
func RegisterExchangePlotServer ¶
func RegisterExchangePlotServer(s grpc.ServiceRegistrar, srv ExchangePlotServer)
Types ¶
type AdditionalErrorCode ¶ added in v0.0.3
type AdditionalErrorCode int32
const ( AdditionalErrorCode_OK AdditionalErrorCode = 0 AdditionalErrorCode_INVALID_TIME_INTERVAL AdditionalErrorCode = 100 AdditionalErrorCode_INVALID_CONVERTER_PAIR AdditionalErrorCode = 101 AdditionalErrorCode_INVALID_FORMAT AdditionalErrorCode = 102 AdditionalErrorCode_INVALID_CURRENCY_CODE AdditionalErrorCode = 103 AdditionalErrorCode_INVALID_BANK_CODE AdditionalErrorCode = 104 )
func (AdditionalErrorCode) Descriptor ¶ added in v0.0.3
func (AdditionalErrorCode) Descriptor() protoreflect.EnumDescriptor
func (AdditionalErrorCode) Enum ¶ added in v0.0.3
func (x AdditionalErrorCode) Enum() *AdditionalErrorCode
func (AdditionalErrorCode) EnumDescriptor
deprecated
added in
v0.0.3
func (AdditionalErrorCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use AdditionalErrorCode.Descriptor instead.
func (AdditionalErrorCode) Number ¶ added in v0.0.3
func (x AdditionalErrorCode) Number() protoreflect.EnumNumber
func (AdditionalErrorCode) String ¶ added in v0.0.3
func (x AdditionalErrorCode) String() string
func (AdditionalErrorCode) Type ¶ added in v0.0.3
func (AdditionalErrorCode) Type() protoreflect.EnumType
type ExchangePlotClient ¶
type ExchangePlotClient interface {
GetExchangePlot(ctx context.Context, in *PlotParams, opts ...grpc.CallOption) (*Plot, error)
}
ExchangePlotClient is the client API for ExchangePlot 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 NewExchangePlotClient ¶
func NewExchangePlotClient(cc grpc.ClientConnInterface) ExchangePlotClient
type ExchangePlotServer ¶
type ExchangePlotServer interface { GetExchangePlot(context.Context, *PlotParams) (*Plot, error) // contains filtered or unexported methods }
ExchangePlotServer is the server API for ExchangePlot service. All implementations must embed UnimplementedExchangePlotServer for forward compatibility
type Plot ¶
type Plot struct { Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` // contains filtered or unexported fields }
func (*Plot) Descriptor
deprecated
func (*Plot) ProtoMessage ¶
func (*Plot) ProtoMessage()
func (*Plot) ProtoReflect ¶
func (x *Plot) ProtoReflect() protoreflect.Message
type PlotParams ¶ added in v0.0.3
type PlotParams struct { Pair *converter.ConverterPair `protobuf:"bytes,1,opt,name=pair,proto3" json:"pair,omitempty"` Interval *TimeInterval `protobuf:"bytes,2,opt,name=interval,proto3" json:"interval,omitempty"` // contains filtered or unexported fields }
func (*PlotParams) Descriptor
deprecated
added in
v0.0.3
func (*PlotParams) Descriptor() ([]byte, []int)
Deprecated: Use PlotParams.ProtoReflect.Descriptor instead.
func (*PlotParams) GetInterval ¶ added in v0.0.3
func (x *PlotParams) GetInterval() *TimeInterval
func (*PlotParams) GetPair ¶ added in v0.0.3
func (x *PlotParams) GetPair() *converter.ConverterPair
func (*PlotParams) ProtoMessage ¶ added in v0.0.3
func (*PlotParams) ProtoMessage()
func (*PlotParams) ProtoReflect ¶ added in v0.0.3
func (x *PlotParams) ProtoReflect() protoreflect.Message
func (*PlotParams) Reset ¶ added in v0.0.3
func (x *PlotParams) Reset()
func (*PlotParams) String ¶ added in v0.0.3
func (x *PlotParams) String() string
type TimeInterval ¶
type TimeInterval struct { Start *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start,proto3" json:"start,omitempty"` End *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end,proto3" json:"end,omitempty"` // contains filtered or unexported fields }
func (*TimeInterval) Descriptor
deprecated
func (*TimeInterval) Descriptor() ([]byte, []int)
Deprecated: Use TimeInterval.ProtoReflect.Descriptor instead.
func (*TimeInterval) GetEnd ¶
func (x *TimeInterval) GetEnd() *timestamppb.Timestamp
func (*TimeInterval) GetStart ¶
func (x *TimeInterval) GetStart() *timestamppb.Timestamp
func (*TimeInterval) ProtoMessage ¶
func (*TimeInterval) ProtoMessage()
func (*TimeInterval) ProtoReflect ¶
func (x *TimeInterval) ProtoReflect() protoreflect.Message
func (*TimeInterval) Reset ¶
func (x *TimeInterval) Reset()
func (*TimeInterval) String ¶
func (x *TimeInterval) String() string
type UnimplementedExchangePlotServer ¶
type UnimplementedExchangePlotServer struct { }
UnimplementedExchangePlotServer must be embedded to have forward compatible implementations.
func (UnimplementedExchangePlotServer) GetExchangePlot ¶
func (UnimplementedExchangePlotServer) GetExchangePlot(context.Context, *PlotParams) (*Plot, error)
type UnsafeExchangePlotServer ¶
type UnsafeExchangePlotServer interface {
// contains filtered or unexported methods
}
UnsafeExchangePlotServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExchangePlotServer will result in compilation errors.