mock

package
v1.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2021 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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