513 lines
18 KiB
Go
513 lines
18 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.5.1
|
|
// - protoc v3.19.4
|
|
// source: org.proto
|
|
|
|
package protobuf
|
|
|
|
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.64.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion9
|
|
|
|
const (
|
|
Org_Event_FullMethodName = "/Org/Event"
|
|
Org_Ping_FullMethodName = "/Org/Ping"
|
|
Org_Pay_FullMethodName = "/Org/Pay"
|
|
Org_Refund_FullMethodName = "/Org/Refund"
|
|
Org_Revoke_FullMethodName = "/Org/Revoke"
|
|
Org_QueryOrder_FullMethodName = "/Org/QueryOrder"
|
|
Org_QueryRefund_FullMethodName = "/Org/QueryRefund"
|
|
)
|
|
|
|
// OrgClient is the client API for Org 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 OrgClient interface {
|
|
Event(ctx context.Context, in *EventReq, opts ...grpc.CallOption) (*EventRes, error)
|
|
Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PongRes, error)
|
|
Pay(ctx context.Context, in *PayReq, opts ...grpc.CallOption) (*Orders, error)
|
|
Refund(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error)
|
|
Revoke(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error)
|
|
QueryOrder(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Orders, error)
|
|
QueryRefund(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Refunds, error)
|
|
}
|
|
|
|
type orgClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewOrgClient(cc grpc.ClientConnInterface) OrgClient {
|
|
return &orgClient{cc}
|
|
}
|
|
|
|
func (c *orgClient) Event(ctx context.Context, in *EventReq, opts ...grpc.CallOption) (*EventRes, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(EventRes)
|
|
err := c.cc.Invoke(ctx, Org_Event_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *orgClient) Ping(ctx context.Context, in *PingReq, opts ...grpc.CallOption) (*PongRes, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(PongRes)
|
|
err := c.cc.Invoke(ctx, Org_Ping_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *orgClient) Pay(ctx context.Context, in *PayReq, opts ...grpc.CallOption) (*Orders, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Orders)
|
|
err := c.cc.Invoke(ctx, Org_Pay_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *orgClient) Refund(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Refunds)
|
|
err := c.cc.Invoke(ctx, Org_Refund_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *orgClient) Revoke(ctx context.Context, in *RefundReq, opts ...grpc.CallOption) (*Refunds, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Refunds)
|
|
err := c.cc.Invoke(ctx, Org_Revoke_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *orgClient) QueryOrder(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Orders, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Orders)
|
|
err := c.cc.Invoke(ctx, Org_QueryOrder_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *orgClient) QueryRefund(ctx context.Context, in *QueryReq, opts ...grpc.CallOption) (*Refunds, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Refunds)
|
|
err := c.cc.Invoke(ctx, Org_QueryRefund_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// OrgServer is the server API for Org service.
|
|
// All implementations must embed UnimplementedOrgServer
|
|
// for forward compatibility.
|
|
type OrgServer interface {
|
|
Event(context.Context, *EventReq) (*EventRes, error)
|
|
Ping(context.Context, *PingReq) (*PongRes, error)
|
|
Pay(context.Context, *PayReq) (*Orders, error)
|
|
Refund(context.Context, *RefundReq) (*Refunds, error)
|
|
Revoke(context.Context, *RefundReq) (*Refunds, error)
|
|
QueryOrder(context.Context, *QueryReq) (*Orders, error)
|
|
QueryRefund(context.Context, *QueryReq) (*Refunds, error)
|
|
mustEmbedUnimplementedOrgServer()
|
|
}
|
|
|
|
// UnimplementedOrgServer must be embedded to have
|
|
// forward compatible implementations.
|
|
//
|
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
|
// pointer dereference when methods are called.
|
|
type UnimplementedOrgServer struct{}
|
|
|
|
func (UnimplementedOrgServer) Event(context.Context, *EventReq) (*EventRes, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Event not implemented")
|
|
}
|
|
func (UnimplementedOrgServer) Ping(context.Context, *PingReq) (*PongRes, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Ping not implemented")
|
|
}
|
|
func (UnimplementedOrgServer) Pay(context.Context, *PayReq) (*Orders, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Pay not implemented")
|
|
}
|
|
func (UnimplementedOrgServer) Refund(context.Context, *RefundReq) (*Refunds, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Refund not implemented")
|
|
}
|
|
func (UnimplementedOrgServer) Revoke(context.Context, *RefundReq) (*Refunds, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method Revoke not implemented")
|
|
}
|
|
func (UnimplementedOrgServer) QueryOrder(context.Context, *QueryReq) (*Orders, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method QueryOrder not implemented")
|
|
}
|
|
func (UnimplementedOrgServer) QueryRefund(context.Context, *QueryReq) (*Refunds, error) {
|
|
return nil, status.Errorf(codes.Unimplemented, "method QueryRefund not implemented")
|
|
}
|
|
func (UnimplementedOrgServer) mustEmbedUnimplementedOrgServer() {}
|
|
func (UnimplementedOrgServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafeOrgServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to OrgServer will
|
|
// result in compilation errors.
|
|
type UnsafeOrgServer interface {
|
|
mustEmbedUnimplementedOrgServer()
|
|
}
|
|
|
|
func RegisterOrgServer(s grpc.ServiceRegistrar, srv OrgServer) {
|
|
// If the following call pancis, it indicates UnimplementedOrgServer was
|
|
// embedded by pointer and is nil. This will cause panics if an
|
|
// unimplemented method is ever invoked, so we test this at initialization
|
|
// time to prevent it from happening at runtime later due to I/O.
|
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
|
t.testEmbeddedByValue()
|
|
}
|
|
s.RegisterService(&Org_ServiceDesc, srv)
|
|
}
|
|
|
|
func _Org_Event_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(EventReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OrgServer).Event(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Org_Event_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrgServer).Event(ctx, req.(*EventReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Org_Ping_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PingReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OrgServer).Ping(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Org_Ping_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrgServer).Ping(ctx, req.(*PingReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Org_Pay_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(PayReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OrgServer).Pay(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Org_Pay_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrgServer).Pay(ctx, req.(*PayReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Org_Refund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RefundReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OrgServer).Refund(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Org_Refund_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrgServer).Refund(ctx, req.(*RefundReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Org_Revoke_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RefundReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OrgServer).Revoke(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Org_Revoke_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrgServer).Revoke(ctx, req.(*RefundReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Org_QueryOrder_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OrgServer).QueryOrder(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Org_QueryOrder_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrgServer).QueryOrder(ctx, req.(*QueryReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Org_QueryRefund_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(QueryReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OrgServer).QueryRefund(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: Org_QueryRefund_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OrgServer).QueryRefund(ctx, req.(*QueryReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// Org_ServiceDesc is the grpc.ServiceDesc for Org service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var Org_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "Org",
|
|
HandlerType: (*OrgServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Event",
|
|
Handler: _Org_Event_Handler,
|
|
},
|
|
{
|
|
MethodName: "Ping",
|
|
Handler: _Org_Ping_Handler,
|
|
},
|
|
{
|
|
MethodName: "Pay",
|
|
Handler: _Org_Pay_Handler,
|
|
},
|
|
{
|
|
MethodName: "Refund",
|
|
Handler: _Org_Refund_Handler,
|
|
},
|
|
{
|
|
MethodName: "Revoke",
|
|
Handler: _Org_Revoke_Handler,
|
|
},
|
|
{
|
|
MethodName: "QueryOrder",
|
|
Handler: _Org_QueryOrder_Handler,
|
|
},
|
|
{
|
|
MethodName: "QueryRefund",
|
|
Handler: _Org_QueryRefund_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "org.proto",
|
|
}
|
|
|
|
const (
|
|
Bss_Async_FullMethodName = "/Bss/Async"
|
|
Bss_Order_FullMethodName = "/Bss/Order"
|
|
Bss_Refund_FullMethodName = "/Bss/Refund"
|
|
)
|
|
|
|
// BssClient is the client API for Bss 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 BssClient interface {
|
|
// rpc Event(stream protobuf.Orders) returns (); //事件通知
|
|
Async(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Dataset, Dataset], error)
|
|
Order(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Orders, Orders], error)
|
|
Refund(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Refunds, Refunds], error)
|
|
}
|
|
|
|
type bssClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewBssClient(cc grpc.ClientConnInterface) BssClient {
|
|
return &bssClient{cc}
|
|
}
|
|
|
|
func (c *bssClient) Async(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Dataset, Dataset], error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
stream, err := c.cc.NewStream(ctx, &Bss_ServiceDesc.Streams[0], Bss_Async_FullMethodName, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &grpc.GenericClientStream[Dataset, Dataset]{ClientStream: stream}
|
|
return x, nil
|
|
}
|
|
|
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
|
type Bss_AsyncClient = grpc.BidiStreamingClient[Dataset, Dataset]
|
|
|
|
func (c *bssClient) Order(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Orders, Orders], error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
stream, err := c.cc.NewStream(ctx, &Bss_ServiceDesc.Streams[1], Bss_Order_FullMethodName, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &grpc.GenericClientStream[Orders, Orders]{ClientStream: stream}
|
|
return x, nil
|
|
}
|
|
|
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
|
type Bss_OrderClient = grpc.BidiStreamingClient[Orders, Orders]
|
|
|
|
func (c *bssClient) Refund(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[Refunds, Refunds], error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
stream, err := c.cc.NewStream(ctx, &Bss_ServiceDesc.Streams[2], Bss_Refund_FullMethodName, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &grpc.GenericClientStream[Refunds, Refunds]{ClientStream: stream}
|
|
return x, nil
|
|
}
|
|
|
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
|
type Bss_RefundClient = grpc.BidiStreamingClient[Refunds, Refunds]
|
|
|
|
// BssServer is the server API for Bss service.
|
|
// All implementations must embed UnimplementedBssServer
|
|
// for forward compatibility.
|
|
type BssServer interface {
|
|
// rpc Event(stream protobuf.Orders) returns (); //事件通知
|
|
Async(grpc.BidiStreamingServer[Dataset, Dataset]) error
|
|
Order(grpc.BidiStreamingServer[Orders, Orders]) error
|
|
Refund(grpc.BidiStreamingServer[Refunds, Refunds]) error
|
|
mustEmbedUnimplementedBssServer()
|
|
}
|
|
|
|
// UnimplementedBssServer must be embedded to have
|
|
// forward compatible implementations.
|
|
//
|
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
|
// pointer dereference when methods are called.
|
|
type UnimplementedBssServer struct{}
|
|
|
|
func (UnimplementedBssServer) Async(grpc.BidiStreamingServer[Dataset, Dataset]) error {
|
|
return status.Errorf(codes.Unimplemented, "method Async not implemented")
|
|
}
|
|
func (UnimplementedBssServer) Order(grpc.BidiStreamingServer[Orders, Orders]) error {
|
|
return status.Errorf(codes.Unimplemented, "method Order not implemented")
|
|
}
|
|
func (UnimplementedBssServer) Refund(grpc.BidiStreamingServer[Refunds, Refunds]) error {
|
|
return status.Errorf(codes.Unimplemented, "method Refund not implemented")
|
|
}
|
|
func (UnimplementedBssServer) mustEmbedUnimplementedBssServer() {}
|
|
func (UnimplementedBssServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafeBssServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to BssServer will
|
|
// result in compilation errors.
|
|
type UnsafeBssServer interface {
|
|
mustEmbedUnimplementedBssServer()
|
|
}
|
|
|
|
func RegisterBssServer(s grpc.ServiceRegistrar, srv BssServer) {
|
|
// If the following call pancis, it indicates UnimplementedBssServer was
|
|
// embedded by pointer and is nil. This will cause panics if an
|
|
// unimplemented method is ever invoked, so we test this at initialization
|
|
// time to prevent it from happening at runtime later due to I/O.
|
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
|
t.testEmbeddedByValue()
|
|
}
|
|
s.RegisterService(&Bss_ServiceDesc, srv)
|
|
}
|
|
|
|
func _Bss_Async_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
return srv.(BssServer).Async(&grpc.GenericServerStream[Dataset, Dataset]{ServerStream: stream})
|
|
}
|
|
|
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
|
type Bss_AsyncServer = grpc.BidiStreamingServer[Dataset, Dataset]
|
|
|
|
func _Bss_Order_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
return srv.(BssServer).Order(&grpc.GenericServerStream[Orders, Orders]{ServerStream: stream})
|
|
}
|
|
|
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
|
type Bss_OrderServer = grpc.BidiStreamingServer[Orders, Orders]
|
|
|
|
func _Bss_Refund_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
return srv.(BssServer).Refund(&grpc.GenericServerStream[Refunds, Refunds]{ServerStream: stream})
|
|
}
|
|
|
|
// This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
|
|
type Bss_RefundServer = grpc.BidiStreamingServer[Refunds, Refunds]
|
|
|
|
// Bss_ServiceDesc is the grpc.ServiceDesc for Bss service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var Bss_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "Bss",
|
|
HandlerType: (*BssServer)(nil),
|
|
Methods: []grpc.MethodDesc{},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "Async",
|
|
Handler: _Bss_Async_Handler,
|
|
ServerStreams: true,
|
|
ClientStreams: true,
|
|
},
|
|
{
|
|
StreamName: "Order",
|
|
Handler: _Bss_Order_Handler,
|
|
ServerStreams: true,
|
|
ClientStreams: true,
|
|
},
|
|
{
|
|
StreamName: "Refund",
|
|
Handler: _Bss_Refund_Handler,
|
|
ServerStreams: true,
|
|
ClientStreams: true,
|
|
},
|
|
},
|
|
Metadata: "org.proto",
|
|
}
|