Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_trans_proto protoreflect.FileDescriptor
Functions ¶
func RegisterTransSvcServer ¶
func RegisterTransSvcServer(s *grpc.Server, srv TransSvcServer)
Types ¶
type AdjustInfo ¶
type AdjustInfo struct { Amount int64 `protobuf:"varint,1,opt,name=Amount,proto3" json:"Amount,omitempty"` UserID int64 `protobuf:"varint,2,opt,name=UserID,proto3" json:"UserID,omitempty"` // contains filtered or unexported fields }
func (*AdjustInfo) Descriptor
deprecated
func (*AdjustInfo) Descriptor() ([]byte, []int)
Deprecated: Use AdjustInfo.ProtoReflect.Descriptor instead.
func (*AdjustInfo) GetAmount ¶
func (x *AdjustInfo) GetAmount() int64
func (*AdjustInfo) GetUserID ¶
func (x *AdjustInfo) GetUserID() int64
func (*AdjustInfo) ProtoMessage ¶
func (*AdjustInfo) ProtoMessage()
func (*AdjustInfo) ProtoReflect ¶
func (x *AdjustInfo) ProtoReflect() protoreflect.Message
func (*AdjustInfo) Reset ¶
func (x *AdjustInfo) Reset()
func (*AdjustInfo) String ¶
func (x *AdjustInfo) String() string
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
func (*Response) Descriptor
deprecated
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
type TransSvcClient ¶
type TransSvcClient interface { TransIn(ctx context.Context, in *AdjustInfo, opts ...grpc.CallOption) (*Response, error) TransOut(ctx context.Context, in *AdjustInfo, opts ...grpc.CallOption) (*Response, error) }
TransSvcClient is the client API for TransSvc service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewTransSvcClient ¶
func NewTransSvcClient(cc grpc.ClientConnInterface) TransSvcClient
type TransSvcServer ¶
type TransSvcServer interface { TransIn(context.Context, *AdjustInfo) (*Response, error) TransOut(context.Context, *AdjustInfo) (*Response, error) }
TransSvcServer is the server API for TransSvc service.
type UnimplementedTransSvcServer ¶
type UnimplementedTransSvcServer struct { }
UnimplementedTransSvcServer can be embedded to have forward compatible implementations.
func (*UnimplementedTransSvcServer) TransIn ¶
func (*UnimplementedTransSvcServer) TransIn(context.Context, *AdjustInfo) (*Response, error)
func (*UnimplementedTransSvcServer) TransOut ¶
func (*UnimplementedTransSvcServer) TransOut(context.Context, *AdjustInfo) (*Response, error)
Click to show internal directories.
Click to hide internal directories.