Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DepositService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "account.DepositService", HandlerType: (*DepositServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Deposit", Handler: _DepositService_Deposit_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "deposit.proto", }
DepositService_ServiceDesc is the grpc.ServiceDesc for DepositService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_deposit_proto protoreflect.FileDescriptor
Functions ¶
func RegisterDepositServiceServer ¶
func RegisterDepositServiceServer(s grpc.ServiceRegistrar, 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 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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDepositServiceClient ¶
func NewDepositServiceClient(cc grpc.ClientConnInterface) DepositServiceClient
type DepositServiceServer ¶
type DepositServiceServer interface { Deposit(context.Context, *DepositRequest) (*DepositResponse, error) // contains filtered or unexported methods }
DepositServiceServer is the server API for DepositService service. All implementations must embed UnimplementedDepositServiceServer for forward compatibility
type UnimplementedDepositServiceServer ¶
type UnimplementedDepositServiceServer struct { }
UnimplementedDepositServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDepositServiceServer) Deposit ¶
func (UnimplementedDepositServiceServer) Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
type UnsafeDepositServiceServer ¶
type UnsafeDepositServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDepositServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DepositServiceServer will result in compilation errors.