Documentation
¶
Index ¶
- type ChannelAPI
- func (_m *ChannelAPI) Close(_a0 context.Context) (perun.ChannelInfo, error)
- func (_m *ChannelAPI) GetInfo() perun.ChannelInfo
- func (_m *ChannelAPI) ID() string
- func (_m *ChannelAPI) RespondChUpdate(_a0 context.Context, _a1 string, _a2 bool) error
- func (_m *ChannelAPI) SendChUpdate(_a0 context.Context, _a1 perun.StateUpdater) error
- func (_m *ChannelAPI) SubChUpdates(_a0 perun.ChUpdateNotifier) error
- func (_m *ChannelAPI) UnsubChUpdates() error
- type ChannelClient
- func (_m *ChannelClient) Channel(_a0 [32]byte) (*client.Channel, error)
- func (_m *ChannelClient) Close() error
- func (_m *ChannelClient) EnablePersistence(_a0 persistence.PersistRestorer)
- func (_m *ChannelClient) Handle(_a0 client.ProposalHandler, _a1 client.UpdateHandler)
- func (_m *ChannelClient) Log() log.Logger
- func (_m *ChannelClient) OnNewChannel(handler func(*client.Channel))
- func (_m *ChannelClient) ProposeChannel(_a0 context.Context, _a1 *client.ChannelProposal) (*client.Channel, error)
- func (_m *ChannelClient) Register(offChainAddr wallet.Address, commAddr string)
- func (_m *ChannelClient) Restore(_a0 context.Context) error
- type CommBackend
- type Dialer
- type Listener
- type Registerer
- type SessionAPI
- func (_m *SessionAPI) AddContact(_a0 perun.Peer) error
- func (_m *SessionAPI) GetCh(_a0 string) (perun.ChannelAPI, error)
- func (_m *SessionAPI) GetChInfos() []perun.ChannelInfo
- func (_m *SessionAPI) GetContact(alias string) (perun.Peer, error)
- func (_m *SessionAPI) HandleClose(_a0 string, _a1 error)
- func (_m *SessionAPI) HandleProposal(_a0 *client.ChannelProposal, _a1 *client.ProposalResponder)
- func (_m *SessionAPI) HandleUpdate(_a0 client.ChannelUpdate, _a1 *client.UpdateResponder)
- func (_m *SessionAPI) ID() string
- func (_m *SessionAPI) OpenCh(_a0 context.Context, _a1 string, _a2 perun.BalInfo, _a3 perun.App, _a4 uint64) (perun.ChannelInfo, error)
- func (_m *SessionAPI) RespondChProposal(_a0 context.Context, _a1 string, _a2 bool) error
- func (_m *SessionAPI) SubChCloses(_a0 perun.ChCloseNotifier) error
- func (_m *SessionAPI) SubChProposals(_a0 perun.ChProposalNotifier) error
- func (_m *SessionAPI) UnsubChCloses() error
- func (_m *SessionAPI) UnsubChProposals() error
- type WireBus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChannelAPI ¶
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 ¶
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 ¶
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 ¶
func (_m *ChannelClient) Handle(_a0 client.ProposalHandler, _a1 client.UpdateHandler)
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
type CommBackend ¶
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 ¶
Dialer is an autogenerated mock type for the Dialer type
type Listener ¶
Listener is an autogenerated mock type for the Listener type
type Registerer ¶
Registerer is an autogenerated mock type for the Registerer type
type SessionAPI ¶
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 ¶
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: