Documentation ¶
Index ¶
- Variables
- func RegisterCandlesticksServiceServer(s grpc.ServiceRegistrar, srv CandlesticksServiceServer)
- type Candlestick
- func (*Candlestick) Descriptor() ([]byte, []int)deprecated
- func (x *Candlestick) GetClose() float64
- func (x *Candlestick) GetHigh() float64
- func (x *Candlestick) GetLow() float64
- func (x *Candlestick) GetOpen() float64
- func (x *Candlestick) GetTime() string
- func (x *Candlestick) GetVolume() float64
- func (*Candlestick) ProtoMessage()
- func (x *Candlestick) ProtoReflect() protoreflect.Message
- func (x *Candlestick) Reset()
- func (x *Candlestick) String() string
- type CandlesticksServiceClient
- type CandlesticksServiceServer
- type ReadCandlesticksRequest
- func (*ReadCandlesticksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ReadCandlesticksRequest) GetEnd() string
- func (x *ReadCandlesticksRequest) GetExchangeName() string
- func (x *ReadCandlesticksRequest) GetLimit() int64
- func (x *ReadCandlesticksRequest) GetPairSymbol() string
- func (x *ReadCandlesticksRequest) GetPeriodSymbol() string
- func (x *ReadCandlesticksRequest) GetStart() string
- func (*ReadCandlesticksRequest) ProtoMessage()
- func (x *ReadCandlesticksRequest) ProtoReflect() protoreflect.Message
- func (x *ReadCandlesticksRequest) Reset()
- func (x *ReadCandlesticksRequest) String() string
- type ReadCandlesticksResponse
- func (*ReadCandlesticksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ReadCandlesticksResponse) GetCandlesticks() []*Candlestick
- func (*ReadCandlesticksResponse) ProtoMessage()
- func (x *ReadCandlesticksResponse) ProtoReflect() protoreflect.Message
- func (x *ReadCandlesticksResponse) Reset()
- func (x *ReadCandlesticksResponse) String() string
- type UnimplementedCandlesticksServiceServer
- type UnsafeCandlesticksServiceServer
Constants ¶
This section is empty.
Variables ¶
var CandlesticksService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "candlesticks.CandlesticksService", HandlerType: (*CandlesticksServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ReadCandlesticks", Handler: _CandlesticksService_ReadCandlesticks_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "candlesticks.proto", }
CandlesticksService_ServiceDesc is the grpc.ServiceDesc for CandlesticksService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_candlesticks_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCandlesticksServiceServer ¶
func RegisterCandlesticksServiceServer(s grpc.ServiceRegistrar, srv CandlesticksServiceServer)
Types ¶
type Candlestick ¶
type Candlestick struct { Time string `protobuf:"bytes,1,opt,name=time,proto3" json:"time,omitempty"` Open float64 `protobuf:"fixed64,2,opt,name=open,proto3" json:"open,omitempty"` High float64 `protobuf:"fixed64,3,opt,name=high,proto3" json:"high,omitempty"` Low float64 `protobuf:"fixed64,4,opt,name=low,proto3" json:"low,omitempty"` Close float64 `protobuf:"fixed64,5,opt,name=close,proto3" json:"close,omitempty"` Volume float64 `protobuf:"fixed64,6,opt,name=volume,proto3" json:"volume,omitempty"` // contains filtered or unexported fields }
func (*Candlestick) Descriptor
deprecated
func (*Candlestick) Descriptor() ([]byte, []int)
Deprecated: Use Candlestick.ProtoReflect.Descriptor instead.
func (*Candlestick) GetClose ¶
func (x *Candlestick) GetClose() float64
func (*Candlestick) GetHigh ¶
func (x *Candlestick) GetHigh() float64
func (*Candlestick) GetLow ¶
func (x *Candlestick) GetLow() float64
func (*Candlestick) GetOpen ¶
func (x *Candlestick) GetOpen() float64
func (*Candlestick) GetTime ¶
func (x *Candlestick) GetTime() string
func (*Candlestick) GetVolume ¶
func (x *Candlestick) GetVolume() float64
func (*Candlestick) ProtoMessage ¶
func (*Candlestick) ProtoMessage()
func (*Candlestick) ProtoReflect ¶
func (x *Candlestick) ProtoReflect() protoreflect.Message
func (*Candlestick) Reset ¶
func (x *Candlestick) Reset()
func (*Candlestick) String ¶
func (x *Candlestick) String() string
type CandlesticksServiceClient ¶
type CandlesticksServiceClient interface {
ReadCandlesticks(ctx context.Context, in *ReadCandlesticksRequest, opts ...grpc.CallOption) (*ReadCandlesticksResponse, error)
}
CandlesticksServiceClient is the client API for CandlesticksService 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 NewCandlesticksServiceClient ¶
func NewCandlesticksServiceClient(cc grpc.ClientConnInterface) CandlesticksServiceClient
type CandlesticksServiceServer ¶
type CandlesticksServiceServer interface {
ReadCandlesticks(context.Context, *ReadCandlesticksRequest) (*ReadCandlesticksResponse, error)
}
CandlesticksServiceServer is the server API for CandlesticksService service. All implementations should embed UnimplementedCandlesticksServiceServer for forward compatibility
type ReadCandlesticksRequest ¶
type ReadCandlesticksRequest struct { ExchangeName string `protobuf:"bytes,1,opt,name=exchange_name,json=exchangeName,proto3" json:"exchange_name,omitempty"` PairSymbol string `protobuf:"bytes,2,opt,name=pair_symbol,json=pairSymbol,proto3" json:"pair_symbol,omitempty"` PeriodSymbol string `protobuf:"bytes,3,opt,name=period_symbol,json=periodSymbol,proto3" json:"period_symbol,omitempty"` Start string `protobuf:"bytes,4,opt,name=start,proto3" json:"start,omitempty"` End string `protobuf:"bytes,5,opt,name=end,proto3" json:"end,omitempty"` Limit int64 `protobuf:"varint,6,opt,name=limit,proto3" json:"limit,omitempty"` // contains filtered or unexported fields }
func (*ReadCandlesticksRequest) Descriptor
deprecated
func (*ReadCandlesticksRequest) Descriptor() ([]byte, []int)
Deprecated: Use ReadCandlesticksRequest.ProtoReflect.Descriptor instead.
func (*ReadCandlesticksRequest) GetEnd ¶
func (x *ReadCandlesticksRequest) GetEnd() string
func (*ReadCandlesticksRequest) GetExchangeName ¶
func (x *ReadCandlesticksRequest) GetExchangeName() string
func (*ReadCandlesticksRequest) GetLimit ¶
func (x *ReadCandlesticksRequest) GetLimit() int64
func (*ReadCandlesticksRequest) GetPairSymbol ¶
func (x *ReadCandlesticksRequest) GetPairSymbol() string
func (*ReadCandlesticksRequest) GetPeriodSymbol ¶
func (x *ReadCandlesticksRequest) GetPeriodSymbol() string
func (*ReadCandlesticksRequest) GetStart ¶
func (x *ReadCandlesticksRequest) GetStart() string
func (*ReadCandlesticksRequest) ProtoMessage ¶
func (*ReadCandlesticksRequest) ProtoMessage()
func (*ReadCandlesticksRequest) ProtoReflect ¶
func (x *ReadCandlesticksRequest) ProtoReflect() protoreflect.Message
func (*ReadCandlesticksRequest) Reset ¶
func (x *ReadCandlesticksRequest) Reset()
func (*ReadCandlesticksRequest) String ¶
func (x *ReadCandlesticksRequest) String() string
type ReadCandlesticksResponse ¶
type ReadCandlesticksResponse struct { Candlesticks []*Candlestick `protobuf:"bytes,1,rep,name=candlesticks,proto3" json:"candlesticks,omitempty"` // contains filtered or unexported fields }
func (*ReadCandlesticksResponse) Descriptor
deprecated
func (*ReadCandlesticksResponse) Descriptor() ([]byte, []int)
Deprecated: Use ReadCandlesticksResponse.ProtoReflect.Descriptor instead.
func (*ReadCandlesticksResponse) GetCandlesticks ¶
func (x *ReadCandlesticksResponse) GetCandlesticks() []*Candlestick
func (*ReadCandlesticksResponse) ProtoMessage ¶
func (*ReadCandlesticksResponse) ProtoMessage()
func (*ReadCandlesticksResponse) ProtoReflect ¶
func (x *ReadCandlesticksResponse) ProtoReflect() protoreflect.Message
func (*ReadCandlesticksResponse) Reset ¶
func (x *ReadCandlesticksResponse) Reset()
func (*ReadCandlesticksResponse) String ¶
func (x *ReadCandlesticksResponse) String() string
type UnimplementedCandlesticksServiceServer ¶
type UnimplementedCandlesticksServiceServer struct { }
UnimplementedCandlesticksServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedCandlesticksServiceServer) ReadCandlesticks ¶
func (UnimplementedCandlesticksServiceServer) ReadCandlesticks(context.Context, *ReadCandlesticksRequest) (*ReadCandlesticksResponse, error)
type UnsafeCandlesticksServiceServer ¶
type UnsafeCandlesticksServiceServer interface {
// contains filtered or unexported methods
}
UnsafeCandlesticksServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CandlesticksServiceServer will result in compilation errors.