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 CommandRegistrar

type CommandRegistrar struct {
	mock.Mock
}

func (*CommandRegistrar) Command

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

type Loader

type Loader struct {
	mock.Mock
}

func (*Loader) Shares

func (_m *Loader) Shares(s string) ([]*token.RecipientShare, error)

func (*Loader) TokenIDs

func (_m *Loader) TokenIDs(s string) ([]*token.TokenId, error)

func (*Loader) TokenOwner

func (_m *Loader) TokenOwner(s string) (*token.TokenOwner, error)

type ResponseParser

type ResponseParser struct {
	mock.Mock
}

func (*ResponseParser) ParseResponse

func (_m *ResponseParser) ParseResponse(response token.StubResponse) error

type Stub

type Stub struct {
	mock.Mock
}

func (*Stub) Issue

func (_m *Stub) Issue(tokensToIssue []*token.Token, waitTimeout time.Duration) (cmd.StubResponse, error)

func (*Stub) ListTokens

func (_m *Stub) ListTokens() (cmd.StubResponse, error)

func (*Stub) Redeem

func (_m *Stub) Redeem(tokenIDs []*token.TokenId, quantity string, waitTimeout time.Duration) (cmd.StubResponse, error)

func (*Stub) Setup

func (_m *Stub) Setup(configFilePath string, channel string, mspPath string, mspID string) error

func (*Stub) Transfer

func (_m *Stub) Transfer(tokenIDs []*token.TokenId, shares []*token.RecipientShare, waitTimeout time.Duration) (cmd.StubResponse, error)

Jump to

Keyboard shortcuts

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