Versions in this module Expand all Collapse all v1 v1.0.9 Dec 22, 2022 v1.0.8 Dec 22, 2022 Changes in this version + type ClientFactoryMock struct + CreateClientFunc func(ip string, port uint16, target string) (p2p.Client, error) + func (mock *ClientFactoryMock) CreateClient(ip string, port uint16, target string) (p2p.Client, error) + func (mock *ClientFactoryMock) CreateClientCalls() []struct{ ... } + type ClientMock struct + SendFunc func(topic string, req gp2p.Data) (gp2p.Data, error) + func (mock *ClientMock) Send(topic string, req gp2p.Data) (gp2p.Data, error) + func (mock *ClientMock) SendCalls() []struct{ ... } + type ServerMock struct + ServeFunc func() error + SetHandleFunc func(topic string, handler gp2p.Handler) + func (mock *ServerMock) Serve() error + func (mock *ServerMock) ServeCalls() []struct{} + func (mock *ServerMock) SetHandle(topic string, handler gp2p.Handler) + func (mock *ServerMock) SetHandleCalls() []struct{ ... }