mock

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2023 License: MIT Imports: 9 Imported by: 0

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

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.

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

Jump to

Keyboard shortcuts

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