fabric: github.com/hyperledger/fabric/discovery/cmd/mocks Index | Files

package mocks

import "github.com/hyperledger/fabric/discovery/cmd/mocks"

Index

Package Files

channel_response.go command_registrar.go local_response.go response_parser.go service_response.go stub.go

type ChannelResponse Uses

type ChannelResponse struct {
    mock.Mock
}

ChannelResponse is an autogenerated mock type for the ChannelResponse type

func (*ChannelResponse) Config Uses

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

Config provides a mock function with given fields:

func (*ChannelResponse) Endorsers Uses

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

Endorsers provides a mock function with given fields: invocationChain, f

func (*ChannelResponse) Peers Uses

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

Peers provides a mock function with given fields: invocationChain

type CommandRegistrar Uses

type CommandRegistrar struct {
    mock.Mock
}

CommandRegistrar is an autogenerated mock type for the CommandRegistrar type

func (*CommandRegistrar) Command Uses

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

Command provides a mock function with given fields: name, help, onCommand

type LocalResponse Uses

type LocalResponse struct {
    mock.Mock
}

LocalResponse is an autogenerated mock type for the LocalResponse type

func (*LocalResponse) Peers Uses

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

Peers provides a mock function with given fields:

type ResponseParser Uses

type ResponseParser struct {
    mock.Mock
}

ResponseParser is an autogenerated mock type for the ResponseParser type

func (*ResponseParser) ParseResponse Uses

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

ParseResponse provides a mock function with given fields: channel, response

type ServiceResponse Uses

type ServiceResponse struct {
    mock.Mock
}

ServiceResponse is an autogenerated mock type for the ServiceResponse type

func (*ServiceResponse) ForChannel Uses

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

ForChannel provides a mock function with given fields: _a0

func (*ServiceResponse) ForLocal Uses

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

ForLocal provides a mock function with given fields:

func (*ServiceResponse) Raw Uses

func (_m *ServiceResponse) Raw() *fabric_protos_godiscovery.Response

Raw provides a mock function with given fields:

type Stub Uses

type Stub struct {
    mock.Mock
}

Stub is an autogenerated mock type for the Stub type

func (*Stub) Send Uses

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

Send provides a mock function with given fields: server, conf, req

Package mocks imports 6 packages (graph). Updated 2019-11-22. Refresh now. Tools for package owners.