mocks

package
v0.0.0-...-95b87ed Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelResponse

type ChannelResponse struct {
	mock.Mock
}

func (*ChannelResponse) Config

func (_m *ChannelResponse) Config() (*discovery.ConfigResult, error)

func (*ChannelResponse) Endorsers

func (_m *ChannelResponse) Endorsers(invocationChain client.InvocationChain, f client.Filter) (client.Endorsers, error)

func (*ChannelResponse) Peers

func (_m *ChannelResponse) Peers(invocationChain ...*discovery.ChaincodeCall) ([]*client.Peer, error)

type CommandRegistrar

type CommandRegistrar struct {
	mock.Mock
}

func (*CommandRegistrar) Command

func (_m *CommandRegistrar) Command(name string, help string, onCommand common.CLICommand) *kingpin.CmdClause

type LocalResponse

type LocalResponse struct {
	mock.Mock
}

func (*LocalResponse) Peers

func (_m *LocalResponse) Peers() ([]*discovery.Peer, error)

type ResponseParser

type ResponseParser struct {
	mock.Mock
}

func (*ResponseParser) ParseResponse

func (_m *ResponseParser) ParseResponse(channel string, response discovery.ServiceResponse) error

type ServiceResponse

type ServiceResponse struct {
	mock.Mock
}

func (*ServiceResponse) ForChannel

func (_m *ServiceResponse) ForChannel(_a0 string) discovery.ChannelResponse

func (*ServiceResponse) ForLocal

func (_m *ServiceResponse) ForLocal() discovery.LocalResponse

func (*ServiceResponse) Raw

type Stub

type Stub struct {
	mock.Mock
}

func (*Stub) Send

func (_m *Stub) Send(server string, conf common.Config, req *discovery.Request) (cmd.ServiceResponse, error)

Jump to

Keyboard shortcuts

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