Documentation ¶
Index ¶
- type Peer
- func (_m *Peer) Close() error
- func (_m *Peer) HealthReport() map[string]error
- func (_m *Peer) ID() ragep2ptypes.PeerID
- func (_m *Peer) Name() string
- func (_m *Peer) Ready() error
- func (_m *Peer) Receive() <-chan types.Message
- func (_m *Peer) Send(peerID ragep2ptypes.PeerID, msg []byte) error
- func (_m *Peer) Start(_a0 context.Context) error
- func (_m *Peer) UpdateConnections(peers map[ragep2ptypes.PeerID]types.StreamConfig) error
- type PeerWrapper
- type Signer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Peer ¶
Peer is an autogenerated mock type for the Peer type
func NewPeer ¶
NewPeer creates a new instance of Peer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Peer) HealthReport ¶
HealthReport provides a mock function with given fields:
func (*Peer) ID ¶
func (_m *Peer) ID() ragep2ptypes.PeerID
ID provides a mock function with given fields:
func (*Peer) Send ¶
func (_m *Peer) Send(peerID ragep2ptypes.PeerID, msg []byte) error
Send provides a mock function with given fields: peerID, msg
func (*Peer) UpdateConnections ¶
func (_m *Peer) UpdateConnections(peers map[ragep2ptypes.PeerID]types.StreamConfig) error
UpdateConnections provides a mock function with given fields: peers
type PeerWrapper ¶
PeerWrapper is an autogenerated mock type for the PeerWrapper type
func NewPeerWrapper ¶
func NewPeerWrapper(t interface { mock.TestingT Cleanup(func()) }) *PeerWrapper
NewPeerWrapper creates a new instance of PeerWrapper. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*PeerWrapper) Close ¶
func (_m *PeerWrapper) Close() error
Close provides a mock function with given fields:
func (*PeerWrapper) GetPeer ¶
func (_m *PeerWrapper) GetPeer() types.Peer
GetPeer provides a mock function with given fields:
func (*PeerWrapper) HealthReport ¶
func (_m *PeerWrapper) HealthReport() map[string]error
HealthReport provides a mock function with given fields:
func (*PeerWrapper) Name ¶
func (_m *PeerWrapper) Name() string
Name provides a mock function with given fields:
func (*PeerWrapper) Ready ¶
func (_m *PeerWrapper) Ready() error
Ready provides a mock function with given fields: