You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
312 lines
12 KiB
312 lines
12 KiB
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.4.0
|
|
// - protoc v5.27.1
|
|
// source: matchmaking/v1/share/shareInr.proto
|
|
|
|
package v1
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.62.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion8
|
|
|
|
const (
|
|
ShareInr_GetBotStockInrTrade_FullMethodName = "/matchmaking.v1.ShareInr/GetBotStockInrTrade"
|
|
ShareInr_ShareInrPlaceOrder_FullMethodName = "/matchmaking.v1.ShareInr/ShareInrPlaceOrder"
|
|
ShareInr_ShareInrUpdateOrder_FullMethodName = "/matchmaking.v1.ShareInr/ShareInrUpdateOrder"
|
|
ShareInr_ShareInrPosition_FullMethodName = "/matchmaking.v1.ShareInr/ShareInrPosition"
|
|
ShareInr_ShareInrAllPosition_FullMethodName = "/matchmaking.v1.ShareInr/ShareInrAllPosition"
|
|
ShareInr_ShareInrCancel_FullMethodName = "/matchmaking.v1.ShareInr/ShareInrCancel"
|
|
)
|
|
|
|
// ShareInrClient is the client API for ShareInr 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 ShareInrClient interface {
|
|
// GetBotStockInrTrade 印度股列表查询
|
|
GetBotStockInrTrade(ctx context.Context, in *GetInrBotStockTradeRequest, opts ...grpc.CallOption) (*GetBotStockInrTradeReply, error)
|
|
// ShareInrPlaceOrder 印度股下单
|
|
ShareInrPlaceOrder(ctx context.Context, in *ShareInrOrderRequest, opts ...grpc.CallOption) (*InrOrderReply, error)
|
|
// ShareInrUpdateOrder 印度股设置止盈止损
|
|
ShareInrUpdateOrder(ctx context.Context, in *UpdateInrOrderRequest, opts ...grpc.CallOption) (*InrOrderReply, error)
|
|
// ShareInrPosition 印度股平仓
|
|
ShareInrPosition(ctx context.Context, in *CancelInrOrderRequest, opts ...grpc.CallOption) (*InrOrderReply, error)
|
|
// ShareInrAllPosition 印度股一键平仓
|
|
ShareInrAllPosition(ctx context.Context, in *AllInrOrderRequest, opts ...grpc.CallOption) (*AllInrOrderReply, error)
|
|
// ShareInrCancel 印度股撤单
|
|
ShareInrCancel(ctx context.Context, in *CancelInrOrderRequest, opts ...grpc.CallOption) (*InrOrderReply, error)
|
|
}
|
|
|
|
type shareInrClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewShareInrClient(cc grpc.ClientConnInterface) ShareInrClient {
|
|
return &shareInrClient{cc}
|
|
}
|
|
|
|
func (c *shareInrClient) GetBotStockInrTrade(ctx context.Context, in *GetInrBotStockTradeRequest, opts ...grpc.CallOption) (*GetBotStockInrTradeReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(GetBotStockInrTradeReply)
|
|
err := c.cc.Invoke(ctx, ShareInr_GetBotStockInrTrade_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareInrClient) ShareInrPlaceOrder(ctx context.Context, in *ShareInrOrderRequest, opts ...grpc.CallOption) (*InrOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InrOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareInr_ShareInrPlaceOrder_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareInrClient) ShareInrUpdateOrder(ctx context.Context, in *UpdateInrOrderRequest, opts ...grpc.CallOption) (*InrOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InrOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareInr_ShareInrUpdateOrder_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareInrClient) ShareInrPosition(ctx context.Context, in *CancelInrOrderRequest, opts ...grpc.CallOption) (*InrOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InrOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareInr_ShareInrPosition_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareInrClient) ShareInrAllPosition(ctx context.Context, in *AllInrOrderRequest, opts ...grpc.CallOption) (*AllInrOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(AllInrOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareInr_ShareInrAllPosition_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *shareInrClient) ShareInrCancel(ctx context.Context, in *CancelInrOrderRequest, opts ...grpc.CallOption) (*InrOrderReply, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InrOrderReply)
|
|
err := c.cc.Invoke(ctx, ShareInr_ShareInrCancel_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// ShareInrServer is the server API for ShareInr service.
|
|
// All implementations must embed UnimplementedShareInrServer
|
|
// for forward compatibility
|
|
type ShareInrServer interface {
|
|
// GetBotStockInrTrade 印度股列表查询
|
|
GetBotStockInrTrade(context.Context, *GetInrBotStockTradeRequest) (*GetBotStockInrTradeReply, error)
|
|
// ShareInrPlaceOrder 印度股下单
|
|
ShareInrPlaceOrder(context.Context, *ShareInrOrderRequest) (*InrOrderReply, error)
|
|
// ShareInrUpdateOrder 印度股设置止盈止损
|
|
ShareInrUpdateOrder(context.Context, *UpdateInrOrderRequest) (*InrOrderReply, error)
|
|
// ShareInrPosition 印度股平仓
|
|
ShareInrPosition(context.Context, *CancelInrOrderRequest) (*InrOrderReply, error)
|
|
// ShareInrAllPosition 印度股一键平仓
|
|
ShareInrAllPosition(context.Context, *AllInrOrderRequest) (*AllInrOrderReply, error)
|
|
// ShareInrCancel 印度股撤单
|
|
ShareInrCancel(context.Context, *CancelInrOrderRequest) (*InrOrderReply, error)
|
|
mustEmbedUnimplementedShareInrServer()
|
|
}
|
|
|
|
// UnimplementedShareInrServer must be embedded to have forward compatible implementations.
|
|
type UnimplementedShareInrServer struct {
|
|
}
|
|
|
|
func (UnimplementedShareInrServer) GetBotStockInrTrade(context.Context, *GetInrBotStockTradeRequest) (*GetBotStockInrTradeReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetBotStockInrTrade not implemented")
|
|
}
|
|
func (UnimplementedShareInrServer) ShareInrPlaceOrder(context.Context, *ShareInrOrderRequest) (*InrOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareInrPlaceOrder not implemented")
|
|
}
|
|
func (UnimplementedShareInrServer) ShareInrUpdateOrder(context.Context, *UpdateInrOrderRequest) (*InrOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareInrUpdateOrder not implemented")
|
|
}
|
|
func (UnimplementedShareInrServer) ShareInrPosition(context.Context, *CancelInrOrderRequest) (*InrOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareInrPosition not implemented")
|
|
}
|
|
func (UnimplementedShareInrServer) ShareInrAllPosition(context.Context, *AllInrOrderRequest) (*AllInrOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareInrAllPosition not implemented")
|
|
}
|
|
func (UnimplementedShareInrServer) ShareInrCancel(context.Context, *CancelInrOrderRequest) (*InrOrderReply, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method ShareInrCancel not implemented")
|
|
}
|
|
func (UnimplementedShareInrServer) mustEmbedUnimplementedShareInrServer() {}
|
|
|
|
// UnsafeShareInrServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to ShareInrServer will
|
|
// result in compilation errors.
|
|
type UnsafeShareInrServer interface {
|
|
mustEmbedUnimplementedShareInrServer()
|
|
}
|
|
|
|
func RegisterShareInrServer(s grpc.ServiceRegistrar, srv ShareInrServer) {
|
|
s.RegisterService(&ShareInr_ServiceDesc, srv)
|
|
}
|
|
|
|
func _ShareInr_GetBotStockInrTrade_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(GetInrBotStockTradeRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareInrServer).GetBotStockInrTrade(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareInr_GetBotStockInrTrade_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareInrServer).GetBotStockInrTrade(ctx, req.(*GetInrBotStockTradeRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareInr_ShareInrPlaceOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ShareInrOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareInrServer).ShareInrPlaceOrder(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareInr_ShareInrPlaceOrder_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareInrServer).ShareInrPlaceOrder(ctx, req.(*ShareInrOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareInr_ShareInrUpdateOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateInrOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareInrServer).ShareInrUpdateOrder(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareInr_ShareInrUpdateOrder_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareInrServer).ShareInrUpdateOrder(ctx, req.(*UpdateInrOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareInr_ShareInrPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CancelInrOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareInrServer).ShareInrPosition(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareInr_ShareInrPosition_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareInrServer).ShareInrPosition(ctx, req.(*CancelInrOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareInr_ShareInrAllPosition_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AllInrOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareInrServer).ShareInrAllPosition(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareInr_ShareInrAllPosition_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareInrServer).ShareInrAllPosition(ctx, req.(*AllInrOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _ShareInr_ShareInrCancel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CancelInrOrderRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(ShareInrServer).ShareInrCancel(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: ShareInr_ShareInrCancel_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(ShareInrServer).ShareInrCancel(ctx, req.(*CancelInrOrderRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// ShareInr_ServiceDesc is the grpc.ServiceDesc for ShareInr service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var ShareInr_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "matchmaking.v1.ShareInr",
|
|
HandlerType: (*ShareInrServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "GetBotStockInrTrade",
|
|
Handler: _ShareInr_GetBotStockInrTrade_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareInrPlaceOrder",
|
|
Handler: _ShareInr_ShareInrPlaceOrder_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareInrUpdateOrder",
|
|
Handler: _ShareInr_ShareInrUpdateOrder_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareInrPosition",
|
|
Handler: _ShareInr_ShareInrPosition_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareInrAllPosition",
|
|
Handler: _ShareInr_ShareInrAllPosition_Handler,
|
|
},
|
|
{
|
|
MethodName: "ShareInrCancel",
|
|
Handler: _ShareInr_ShareInrCancel_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "matchmaking/v1/share/shareInr.proto",
|
|
}
|
|
|