mocks

package
v0.0.0-...-fbe82ab Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Code generated by mockery v1.0.0. 不要编辑。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockVerifier

type BlockVerifier struct {
	mock.Mock
}

BlockVerifier是BlockVerifier类型的自动生成的模拟类型

func (*BlockVerifier) VerifyBlockSignature

func (_m *BlockVerifier) VerifyBlockSignature(sd []*common.SignedData, config *common.ConfigEnvelope) error

verifyblocksignature提供了一个具有给定字段的模拟函数:sd,config

type ChainPuller

type ChainPuller struct {
	mock.Mock
}

chainpuller是为chainpuller类型自动生成的模拟类型

func (*ChainPuller) Close

func (_m *ChainPuller) Close()

close为给定字段提供模拟函数:

func (*ChainPuller) HeightsByEndpoints

func (_m *ChainPuller) HeightsByEndpoints() map[string]uint64

Heightsbyendpoints为给定字段提供模拟函数:

func (*ChainPuller) PullBlock

func (_m *ChainPuller) PullBlock(seq uint64) *common.Block

pullblock提供了一个具有给定字段的模拟函数:seq

type ChannelLister

type ChannelLister struct {
	mock.Mock
}

ChannelLister是ChannelLister类型的自动生成的模拟类型

func (*ChannelLister) Channels

func (_m *ChannelLister) Channels() []string

通道为给定字段提供模拟功能:

func (*ChannelLister) Close

func (_m *ChannelLister) Close()

close为给定字段提供模拟函数:

type ClusterClient

type ClusterClient struct {
	mock.Mock
}

clusterClient是为clusterClient类型自动生成的模拟类型

func (*ClusterClient) Step

步骤为给定字段提供模拟函数:ctx、in、opts

func (*ClusterClient) Submit

Submit提供了一个具有给定字段的模拟函数:ctx、opts

type Communicator

type Communicator struct {
	mock.Mock
}

Communicator是为Communicator类型自动生成的模拟类型

func (*Communicator) Configure

func (_m *Communicator) Configure(channel string, members []cluster.RemoteNode)

配置为给定字段提供模拟函数:通道、成员

func (*Communicator) Remote

func (_m *Communicator) Remote(channel string, id uint64) (*cluster.RemoteContext, error)

远程提供了一个具有给定字段的模拟函数:channel,id

func (*Communicator) Shutdown

func (_m *Communicator) Shutdown()

Shutdown为给定字段提供模拟函数:

type Dispatcher

type Dispatcher struct {
	mock.Mock
}

Dispatcher是为Dispatcher类型自动生成的模拟类型

func (*Dispatcher) DispatchStep

func (_m *Dispatcher) DispatchStep(ctx context.Context, request *orderer.StepRequest) (*orderer.StepResponse, error)

DispatchStep提供了一个具有给定字段的模拟函数:ctx,request

func (*Dispatcher) DispatchSubmit

func (_m *Dispatcher) DispatchSubmit(ctx context.Context, request *orderer.SubmitRequest) (*orderer.SubmitResponse, error)

DispatchSubmit提供了一个具有给定字段的模拟函数:ctx,request

type Handler

type Handler struct {
	mock.Mock
}

处理程序是处理程序类型的自动生成的模拟类型

func (*Handler) OnStep

func (_m *Handler) OnStep(channel string, sender uint64, req *orderer.StepRequest) (*orderer.StepResponse, error)

onstep提供了一个具有给定字段的模拟函数:channel、sender、req

func (*Handler) OnSubmit

func (_m *Handler) OnSubmit(channel string, sender uint64, req *orderer.SubmitRequest) (*orderer.SubmitResponse, error)

onsubmit提供了一个具有给定字段的模拟函数:channel、sender、req

type LedgerFactory

type LedgerFactory struct {
	mock.Mock
}

LedgerFactory是LedgerFactory类型的自动生成的模拟类型

func (*LedgerFactory) GetOrCreate

func (_m *LedgerFactory) GetOrCreate(chainID string) (cluster.LedgerWriter, error)

GetorCreate提供了一个具有给定字段的模拟函数:chainID

type LedgerWriter

type LedgerWriter struct {
	mock.Mock
}

LedgerWriter是为LedgerWriter类型自动生成的模拟类型

func (*LedgerWriter) Append

func (_m *LedgerWriter) Append(block *common.Block) error

append提供了一个具有给定字段的模拟函数:block

func (*LedgerWriter) Height

func (_m *LedgerWriter) Height() uint64

高度为给定字段提供模拟函数:

type SecureDialer

type SecureDialer struct {
	mock.Mock
}

SecureDialer是SecureDialer类型的自动生成的模拟类型

func (*SecureDialer) Dial

func (_m *SecureDialer) Dial(address string, verifyFunc cluster.RemoteVerifier) (*grpc.ClientConn, error)

dial提供了一个具有给定字段的模拟函数:address、verifyfunc

type SubmitClient

type SubmitClient struct {
	mock.Mock
}

SubmitClient是为SubmitClient类型自动生成的模拟类型

func (*SubmitClient) CloseSend

func (_m *SubmitClient) CloseSend() error

closesend提供了一个具有给定字段的模拟函数:

func (*SubmitClient) Context

func (_m *SubmitClient) Context() context.Context

上下文为给定字段提供模拟函数:

func (*SubmitClient) Header

func (_m *SubmitClient) Header() (metadata.MD, error)

header提供具有给定字段的模拟函数:

func (*SubmitClient) Recv

func (_m *SubmitClient) Recv() (*orderer.SubmitResponse, error)

recv提供了一个具有给定字段的模拟函数:

func (*SubmitClient) RecvMsg

func (_m *SubmitClient) RecvMsg(m interface{}) error

recvmsg提供具有给定字段的模拟函数:m

func (*SubmitClient) Send

func (_m *SubmitClient) Send(request *orderer.SubmitRequest) error

send提供具有给定字段的模拟函数:request

func (*SubmitClient) SendMsg

func (_m *SubmitClient) SendMsg(m interface{}) error

sendmsg提供具有给定字段的模拟函数:m

func (*SubmitClient) Trailer

func (_m *SubmitClient) Trailer() metadata.MD

拖车为给定字段提供模拟函数:

type SubmitStream

type SubmitStream struct {
	mock.Mock
}

SubmitStream是SubmitStream类型的自动生成的模拟类型

func (*SubmitStream) Context

func (_m *SubmitStream) Context() context.Context

上下文为给定字段提供模拟函数:

func (*SubmitStream) Recv

func (_m *SubmitStream) Recv() (*orderer.SubmitRequest, error)

recv提供了一个具有给定字段的模拟函数:

func (*SubmitStream) RecvMsg

func (_m *SubmitStream) RecvMsg(m interface{}) error

recvmsg提供具有给定字段的模拟函数:m

func (*SubmitStream) Send

func (_m *SubmitStream) Send(response *orderer.SubmitResponse) error

send提供具有给定字段的模拟函数:response

func (*SubmitStream) SendHeader

func (_m *SubmitStream) SendHeader(_a0 metadata.MD) error

sendHeader提供了一个具有给定字段的模拟函数:a0

func (*SubmitStream) SendMsg

func (_m *SubmitStream) SendMsg(m interface{}) error

sendmsg提供具有给定字段的模拟函数:m

func (*SubmitStream) SetHeader

func (_m *SubmitStream) SetHeader(_a0 metadata.MD) error

setheader提供具有给定字段的模拟函数:a0

func (*SubmitStream) SetTrailer

func (_m *SubmitStream) SetTrailer(_a0 metadata.MD)

settrailer提供具有给定字段的模拟函数:a0

Jump to

Keyboard shortcuts

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