mocks

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelAPI

type ChannelAPI struct {
	mock.Mock
}

ChannelAPI is an autogenerated mock type for the ChannelAPI type

func (*ChannelAPI) Close

func (_m *ChannelAPI) Close(_a0 context.Context) (perun.ChannelInfo, error)

Close provides a mock function with given fields: _a0

func (*ChannelAPI) GetInfo

func (_m *ChannelAPI) GetInfo() perun.ChannelInfo

GetInfo provides a mock function with given fields:

func (*ChannelAPI) ID

func (_m *ChannelAPI) ID() string

ID provides a mock function with given fields:

func (*ChannelAPI) RespondChUpdate

func (_m *ChannelAPI) RespondChUpdate(_a0 context.Context, _a1 string, _a2 bool) error

RespondChUpdate provides a mock function with given fields: _a0, _a1, _a2

func (*ChannelAPI) SendChUpdate

func (_m *ChannelAPI) SendChUpdate(_a0 context.Context, _a1 perun.StateUpdater) error

SendChUpdate provides a mock function with given fields: _a0, _a1

func (*ChannelAPI) SubChUpdates

func (_m *ChannelAPI) SubChUpdates(_a0 perun.ChUpdateNotifier) error

SubChUpdates provides a mock function with given fields: _a0

func (*ChannelAPI) UnsubChUpdates

func (_m *ChannelAPI) UnsubChUpdates() error

UnsubChUpdates provides a mock function with given fields:

type ChannelClient

type ChannelClient struct {
	mock.Mock
}

ChannelClient is an autogenerated mock type for the ChannelClient type

func (*ChannelClient) Channel

func (_m *ChannelClient) Channel(_a0 [32]byte) (*client.Channel, error)

Channel provides a mock function with given fields: _a0

func (*ChannelClient) Close

func (_m *ChannelClient) Close() error

Close provides a mock function with given fields:

func (*ChannelClient) EnablePersistence

func (_m *ChannelClient) EnablePersistence(_a0 persistence.PersistRestorer)

EnablePersistence provides a mock function with given fields: _a0

func (*ChannelClient) Handle

Handle provides a mock function with given fields: _a0, _a1

func (*ChannelClient) Log

func (_m *ChannelClient) Log() log.Logger

Log provides a mock function with given fields:

func (*ChannelClient) OnNewChannel

func (_m *ChannelClient) OnNewChannel(handler func(*client.Channel))

OnNewChannel provides a mock function with given fields: handler

func (*ChannelClient) ProposeChannel

func (_m *ChannelClient) ProposeChannel(_a0 context.Context, _a1 *client.ChannelProposal) (*client.Channel, error)

ProposeChannel provides a mock function with given fields: _a0, _a1

func (*ChannelClient) Register

func (_m *ChannelClient) Register(offChainAddr wallet.Address, commAddr string)

Register provides a mock function with given fields: offChainAddr, commAddr

func (*ChannelClient) Restore

func (_m *ChannelClient) Restore(_a0 context.Context) error

Restore provides a mock function with given fields: _a0

type CommBackend

type CommBackend struct {
	mock.Mock
}

CommBackend is an autogenerated mock type for the CommBackend type

func (*CommBackend) NewDialer

func (_m *CommBackend) NewDialer() perun.Dialer

NewDialer provides a mock function with given fields:

func (*CommBackend) NewListener

func (_m *CommBackend) NewListener(address string) (net.Listener, error)

NewListener provides a mock function with given fields: address

type Dialer

type Dialer struct {
	mock.Mock
}

Dialer is an autogenerated mock type for the Dialer type

func (*Dialer) Close

func (_m *Dialer) Close() error

Close provides a mock function with given fields:

func (*Dialer) Dial

func (_m *Dialer) Dial(ctx context.Context, addr wallet.Address) (net.Conn, error)

Dial provides a mock function with given fields: ctx, addr

func (*Dialer) Register

func (_m *Dialer) Register(offChainAddr wallet.Address, commAddr string)

Register provides a mock function with given fields: offChainAddr, commAddr

type Listener

type Listener struct {
	mock.Mock
}

Listener is an autogenerated mock type for the Listener type

func (*Listener) Accept

func (_m *Listener) Accept() (net.Conn, error)

Accept provides a mock function with given fields:

func (*Listener) Close

func (_m *Listener) Close() error

Close provides a mock function with given fields:

type Registerer

type Registerer struct {
	mock.Mock
}

Registerer is an autogenerated mock type for the Registerer type

func (*Registerer) Register

func (_m *Registerer) Register(offChainAddr wallet.Address, commAddr string)

Register provides a mock function with given fields: offChainAddr, commAddr

type SessionAPI

type SessionAPI struct {
	mock.Mock
}

SessionAPI is an autogenerated mock type for the SessionAPI type

func (*SessionAPI) AddContact

func (_m *SessionAPI) AddContact(_a0 perun.Peer) error

AddContact provides a mock function with given fields: _a0

func (*SessionAPI) GetCh

func (_m *SessionAPI) GetCh(_a0 string) (perun.ChannelAPI, error)

GetCh provides a mock function with given fields: _a0

func (*SessionAPI) GetChInfos

func (_m *SessionAPI) GetChInfos() []perun.ChannelInfo

GetChInfos provides a mock function with given fields:

func (*SessionAPI) GetContact

func (_m *SessionAPI) GetContact(alias string) (perun.Peer, error)

GetContact provides a mock function with given fields: alias

func (*SessionAPI) HandleClose

func (_m *SessionAPI) HandleClose(_a0 string, _a1 error)

HandleClose provides a mock function with given fields: _a0, _a1

func (*SessionAPI) HandleProposal

func (_m *SessionAPI) HandleProposal(_a0 *client.ChannelProposal, _a1 *client.ProposalResponder)

HandleProposal provides a mock function with given fields: _a0, _a1

func (*SessionAPI) HandleUpdate

func (_m *SessionAPI) HandleUpdate(_a0 client.ChannelUpdate, _a1 *client.UpdateResponder)

HandleUpdate provides a mock function with given fields: _a0, _a1

func (*SessionAPI) ID

func (_m *SessionAPI) ID() string

ID provides a mock function with given fields:

func (*SessionAPI) OpenCh

func (_m *SessionAPI) OpenCh(_a0 context.Context, _a1 string, _a2 perun.BalInfo, _a3 perun.App, _a4 uint64) (perun.ChannelInfo, error)

OpenCh provides a mock function with given fields: _a0, _a1, _a2, _a3, _a4

func (*SessionAPI) RespondChProposal

func (_m *SessionAPI) RespondChProposal(_a0 context.Context, _a1 string, _a2 bool) error

RespondChProposal provides a mock function with given fields: _a0, _a1, _a2

func (*SessionAPI) SubChCloses

func (_m *SessionAPI) SubChCloses(_a0 perun.ChCloseNotifier) error

SubChCloses provides a mock function with given fields: _a0

func (*SessionAPI) SubChProposals

func (_m *SessionAPI) SubChProposals(_a0 perun.ChProposalNotifier) error

SubChProposals provides a mock function with given fields: _a0

func (*SessionAPI) UnsubChCloses

func (_m *SessionAPI) UnsubChCloses() error

UnsubChCloses provides a mock function with given fields:

func (*SessionAPI) UnsubChProposals

func (_m *SessionAPI) UnsubChProposals() error

UnsubChProposals provides a mock function with given fields:

type WireBus

type WireBus struct {
	mock.Mock
}

WireBus is an autogenerated mock type for the WireBus type

func (*WireBus) Close

func (_m *WireBus) Close() error

Close provides a mock function with given fields:

func (*WireBus) Publish

func (_m *WireBus) Publish(_a0 context.Context, _a1 *wire.Envelope) error

Publish provides a mock function with given fields: _a0, _a1

func (*WireBus) SubscribeClient

func (_m *WireBus) SubscribeClient(c wire.Consumer, clientAddr wallet.Address) error

SubscribeClient provides a mock function with given fields: c, clientAddr

Jump to

Keyboard shortcuts

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