Documentation ¶
Index ¶
- Variables
- type TesServer
- type TestPool
- func (t *TestPool) AddPeer(p peer.Peer)
- func (t *TestPool) Close(ctx context.Context) (err error)
- func (t *TestPool) Dial(ctx context.Context, id string) (peer.Peer, error)
- func (t *TestPool) DialOneOf(ctx context.Context, peerIds []string) (peer.Peer, error)
- func (t *TestPool) Get(ctx context.Context, id string) (peer.Peer, error)
- func (t *TestPool) GetOneOf(ctx context.Context, peerIds []string) (peer.Peer, error)
- func (t *TestPool) Init(a *app.App) (err error)
- func (t *TestPool) Name() (name string)
- func (t *TestPool) NewPool(name string) pool.Pool
- func (t *TestPool) Run(ctx context.Context) (err error)
- func (t *TestPool) WithServer(ts *TesServer) *TestPool
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCantConnect = errors.New("can't connect to test server")
Functions ¶
This section is empty.
Types ¶
type TesServer ¶
type TesServer struct { *drpcmux.Mux *drpcserver.Server }
func NewTestServer ¶
func NewTestServer() *TesServer
Click to show internal directories.
Click to hide internal directories.