Documentation ¶
Overview ¶
Package mock is a generated protocol buffer package.
It is generated from these files:
deposit.proto
It has these top-level messages:
DepositRequest DepositResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterDepositServiceServer ¶
func RegisterDepositServiceServer(s *grpc.Server, srv DepositServiceServer)
Types ¶
type DepositRequest ¶
type DepositRequest struct {
Amount float32 `protobuf:"fixed32,1,opt,name=amount" json:"amount,omitempty"`
}
func (*DepositRequest) Descriptor ¶
func (*DepositRequest) Descriptor() ([]byte, []int)
func (*DepositRequest) GetAmount ¶
func (m *DepositRequest) GetAmount() float32
func (*DepositRequest) ProtoMessage ¶
func (*DepositRequest) ProtoMessage()
func (*DepositRequest) Reset ¶
func (m *DepositRequest) Reset()
func (*DepositRequest) String ¶
func (m *DepositRequest) String() string
type DepositResponse ¶
type DepositResponse struct {
Ok bool `protobuf:"varint,1,opt,name=ok" json:"ok,omitempty"`
}
func (*DepositResponse) Descriptor ¶
func (*DepositResponse) Descriptor() ([]byte, []int)
func (*DepositResponse) GetOk ¶
func (m *DepositResponse) GetOk() bool
func (*DepositResponse) ProtoMessage ¶
func (*DepositResponse) ProtoMessage()
func (*DepositResponse) Reset ¶
func (m *DepositResponse) Reset()
func (*DepositResponse) String ¶
func (m *DepositResponse) String() string
type DepositServer ¶
type DepositServer struct { }
func (*DepositServer) Deposit ¶
func (*DepositServer) Deposit(ctx context.Context, req *DepositRequest) (*DepositResponse, error)
type DepositServiceClient ¶
type DepositServiceClient interface {
Deposit(ctx context.Context, in *DepositRequest, opts ...grpc.CallOption) (*DepositResponse, error)
}
func NewDepositServiceClient ¶
func NewDepositServiceClient(cc *grpc.ClientConn) DepositServiceClient
type DepositServiceServer ¶
type DepositServiceServer interface {
Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
}
Click to show internal directories.
Click to hide internal directories.