mock

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: MIT Imports: 8 Imported by: 0

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{}

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

func NewDepositServiceClient

func NewDepositServiceClient(cc *grpc.ClientConn) DepositServiceClient

type DepositServiceServer

type DepositServiceServer interface {
	Deposit(context.Context, *DepositRequest) (*DepositResponse, error)
}

Jump to

Keyboard shortcuts

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