exchange_plot

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: CC0-1.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AdditionalErrorCode_name = map[int32]string{
		0:   "OK",
		100: "INVALID_TIME_INTERVAL",
		101: "INVALID_CONVERTER_PAIR",
		102: "NOT_SUPPORTED_CONVERTER_PAIR",
		103: "NO_DATA_FOR_TIME_INTERVAL",
	}
	AdditionalErrorCode_value = map[string]int32{
		"OK":                           0,
		"INVALID_TIME_INTERVAL":        100,
		"INVALID_CONVERTER_PAIR":       101,
		"NOT_SUPPORTED_CONVERTER_PAIR": 102,
		"NO_DATA_FOR_TIME_INTERVAL":    103,
	}
)

Enum value maps for AdditionalErrorCode.

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

View Source
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_NOT_SUPPORTED_CONVERTER_PAIR AdditionalErrorCode = 102
	AdditionalErrorCode_NO_DATA_FOR_TIME_INTERVAL    AdditionalErrorCode = 103
)

func (AdditionalErrorCode) Descriptor added in v0.0.3

func (AdditionalErrorCode) Enum added in v0.0.3

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 (AdditionalErrorCode) String added in v0.0.3

func (x AdditionalErrorCode) String() string

func (AdditionalErrorCode) Type added in v0.0.3

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.

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) Descriptor() ([]byte, []int)

Deprecated: Use Plot.ProtoReflect.Descriptor instead.

func (*Plot) GetImage

func (x *Plot) GetImage() []byte

func (*Plot) ProtoMessage

func (*Plot) ProtoMessage()

func (*Plot) ProtoReflect

func (x *Plot) ProtoReflect() protoreflect.Message

func (*Plot) Reset

func (x *Plot) Reset()

func (*Plot) String

func (x *Plot) String() string

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

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.

Jump to

Keyboard shortcuts

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