Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var File_deposit_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDepositServiceServer ¶
func RegisterDepositServiceServer(s *grpc.Server, srv DepositServiceServer)
Types ¶
type DepositRequest ¶
type DepositRequest struct { Amount float32 `protobuf:"fixed32,1,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
func (*DepositRequest) Descriptor
deprecated
func (*DepositRequest) Descriptor() ([]byte, []int)
Deprecated: Use DepositRequest.ProtoReflect.Descriptor instead.
func (*DepositRequest) GetAmount ¶
func (x *DepositRequest) GetAmount() float32
func (*DepositRequest) ProtoMessage ¶
func (*DepositRequest) ProtoMessage()
func (*DepositRequest) ProtoReflect ¶
func (x *DepositRequest) ProtoReflect() protoreflect.Message
func (*DepositRequest) Reset ¶
func (x *DepositRequest) Reset()
func (*DepositRequest) String ¶
func (x *DepositRequest) String() string
type DepositResponse ¶
type DepositResponse struct { Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"` // contains filtered or unexported fields }
func (*DepositResponse) Descriptor
deprecated
func (*DepositResponse) Descriptor() ([]byte, []int)
Deprecated: Use DepositResponse.ProtoReflect.Descriptor instead.
func (*DepositResponse) GetOk ¶
func (x *DepositResponse) GetOk() bool
func (*DepositResponse) ProtoMessage ¶
func (*DepositResponse) ProtoMessage()
func (*DepositResponse) ProtoReflect ¶
func (x *DepositResponse) ProtoReflect() protoreflect.Message
func (*DepositResponse) Reset ¶
func (x *DepositResponse) Reset()
func (*DepositResponse) String ¶
func (x *DepositResponse) String() string
type DepositServer ¶
type DepositServer struct{}
DepositServer is used for mocking.
func (*DepositServer) Deposit ¶
func (*DepositServer) Deposit(_ context.Context, req *DepositRequest) (*DepositResponse, error)
Deposit handles the deposit requests.
type DepositServiceClient ¶
type DepositServiceClient interface {
Deposit(ctx context.Context, in *DepositRequest, opts ...grpc.CallOption) (*DepositResponse, error)
}
DepositServiceClient is the client API for DepositService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewDepositServiceClient ¶
func NewDepositServiceClient(cc grpc.ClientConnInterface) DepositServiceClient
type DepositServiceServer ¶
type DepositServiceServer interface {
Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
}
DepositServiceServer is the server API for DepositService service.
type UnimplementedDepositServiceServer ¶
type UnimplementedDepositServiceServer struct{}
UnimplementedDepositServiceServer can be embedded to have forward compatible implementations.
func (*UnimplementedDepositServiceServer) Deposit ¶
func (*UnimplementedDepositServiceServer) Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
Click to show internal directories.
Click to hide internal directories.