Documentation
¶
Index ¶
- type ChAPI
- func (_m *ChAPI) ChallengeDurSecs() uint64
- func (_m *ChAPI) Close(_a0 context.Context) (perun.ChInfo, error)
- func (_m *ChAPI) Currency() string
- func (_m *ChAPI) GetChInfo() perun.ChInfo
- func (_m *ChAPI) ID() string
- func (_m *ChAPI) Parts() []string
- func (_m *ChAPI) RespondChUpdate(_a0 context.Context, _a1 string, _a2 bool) (perun.ChInfo, error)
- func (_m *ChAPI) SendChUpdate(_a0 context.Context, _a1 perun.StateUpdater) (perun.ChInfo, error)
- func (_m *ChAPI) SubChUpdates(_a0 perun.ChUpdateNotifier) error
- func (_m *ChAPI) UnsubChUpdates() error
- type ChClient
- func (_m *ChClient) Channel(_a0 [32]byte) (*client.Channel, error)
- func (_m *ChClient) Close() error
- func (_m *ChClient) EnablePersistence(_a0 persistence.PersistRestorer)
- func (_m *ChClient) Handle(_a0 client.ProposalHandler, _a1 client.UpdateHandler)
- func (_m *ChClient) Log() log.Logger
- func (_m *ChClient) OnNewChannel(handler func(*client.Channel))
- func (_m *ChClient) ProposeChannel(_a0 context.Context, _a1 client.ChannelProposal) (*client.Channel, error)
- func (_m *ChClient) Register(offChainAddr wallet.Address, commAddr string)
- func (_m *ChClient) Restore(_a0 context.Context) error
- func (_m *ChClient) RestoreChs(_a0 func(*client.Channel)) error
- type Closer
- type CommBackend
- type Dialer
- type Listener
- type Registerer
- type SessionAPI
- func (_m *SessionAPI) AddContact(_a0 perun.Peer) error
- func (_m *SessionAPI) Close(force bool) ([]perun.ChInfo, error)
- func (_m *SessionAPI) GetCh(_a0 string) (perun.ChAPI, error)
- func (_m *SessionAPI) GetChsInfo() []perun.ChInfo
- func (_m *SessionAPI) GetContact(alias string) (perun.Peer, error)
- func (_m *SessionAPI) ID() string
- func (_m *SessionAPI) OpenCh(_a0 context.Context, _a1 perun.BalInfo, _a2 perun.App, _a3 uint64) (perun.ChInfo, error)
- func (_m *SessionAPI) RespondChProposal(_a0 context.Context, _a1 string, _a2 bool) (perun.ChInfo, error)
- func (_m *SessionAPI) SubChProposals(_a0 perun.ChProposalNotifier) 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 ChAPI ¶ added in v0.4.0
ChAPI is an autogenerated mock type for the ChAPI type
func (*ChAPI) ChallengeDurSecs ¶ added in v0.4.0
ChallengeDurSecs provides a mock function with given fields:
func (*ChAPI) RespondChUpdate ¶ added in v0.4.0
RespondChUpdate provides a mock function with given fields: _a0, _a1, _a2
func (*ChAPI) SendChUpdate ¶ added in v0.4.0
SendChUpdate provides a mock function with given fields: _a0, _a1
func (*ChAPI) SubChUpdates ¶ added in v0.4.0
func (_m *ChAPI) SubChUpdates(_a0 perun.ChUpdateNotifier) error
SubChUpdates provides a mock function with given fields: _a0
func (*ChAPI) UnsubChUpdates ¶ added in v0.4.0
UnsubChUpdates provides a mock function with given fields:
type ChClient ¶ added in v0.4.0
ChClient is an autogenerated mock type for the ChClient type
func (*ChClient) EnablePersistence ¶ added in v0.4.0
func (_m *ChClient) EnablePersistence(_a0 persistence.PersistRestorer)
EnablePersistence provides a mock function with given fields: _a0
func (*ChClient) Handle ¶ added in v0.4.0
func (_m *ChClient) Handle(_a0 client.ProposalHandler, _a1 client.UpdateHandler)
Handle provides a mock function with given fields: _a0, _a1
func (*ChClient) OnNewChannel ¶ added in v0.4.0
OnNewChannel provides a mock function with given fields: handler
func (*ChClient) ProposeChannel ¶ added in v0.4.0
func (_m *ChClient) ProposeChannel(_a0 context.Context, _a1 client.ChannelProposal) (*client.Channel, error)
ProposeChannel provides a mock function with given fields: _a0, _a1
func (*ChClient) Register ¶ added in v0.4.0
Register provides a mock function with given fields: offChainAddr, commAddr
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) Close ¶ added in v0.4.0
func (_m *SessionAPI) Close(force bool) ([]perun.ChInfo, error)
Close provides a mock function with given fields: force
func (*SessionAPI) GetCh ¶
func (_m *SessionAPI) GetCh(_a0 string) (perun.ChAPI, error)
GetCh provides a mock function with given fields: _a0
func (*SessionAPI) GetChsInfo ¶ added in v0.4.0
func (_m *SessionAPI) GetChsInfo() []perun.ChInfo
GetChsInfo 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) 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 perun.BalInfo, _a2 perun.App, _a3 uint64) (perun.ChInfo, error)
OpenCh provides a mock function with given fields: _a0, _a1, _a2, _a3
func (*SessionAPI) RespondChProposal ¶
func (_m *SessionAPI) RespondChProposal(_a0 context.Context, _a1 string, _a2 bool) (perun.ChInfo, error)
RespondChProposal provides a mock function with given fields: _a0, _a1, _a2
func (*SessionAPI) SubChProposals ¶
func (_m *SessionAPI) SubChProposals(_a0 perun.ChProposalNotifier) error
SubChProposals provides a mock function with given fields: _a0
func (*SessionAPI) UnsubChProposals ¶
func (_m *SessionAPI) UnsubChProposals() error
UnsubChProposals provides a mock function with given fields: