pb

package
v0.0.0-...-04acb0f Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 8 Imported by: 1

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

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) TransOut

Jump to

Keyboard shortcuts

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