package itest
import "github.com/libp2p/go-libp2p/p2p/test/resource-manager"
Index ¶
- Constants
- type Echo
- func NewEcho(h host.Host) *Echo
- func (e *Echo) BeforeDone(f func() error)
- func (e *Echo) BeforeRead(f func() error)
- func (e *Echo) BeforeReserve(f func() error)
- func (e *Echo) BeforeWrite(f func() error)
- func (e *Echo) Done(f func())
- func (e *Echo) Echo(p peer.ID, what string) error
- func (e *Echo) Status() EchoStatus
- type EchoStatus
Constants ¶
const ( EchoService = "test.echo" EchoProtoID = "/test/echo" )
Types ¶
type Echo ¶
func NewEcho ¶
func (*Echo) BeforeDone ¶
func (*Echo) BeforeRead ¶
func (*Echo) BeforeReserve ¶
func (*Echo) BeforeWrite ¶
func (*Echo) Done ¶
func (e *Echo) Done(f func())
func (*Echo) Echo ¶
func (*Echo) Status ¶
func (e *Echo) Status() EchoStatus
type EchoStatus ¶
type EchoStatus struct { StreamsIn int EchosIn, EchosOut int IOErrors int ResourceServiceErrors int ResourceReservationErrors int }
Source Files ¶
- Version
- v0.42.0 (latest)
- Published
- Jun 18, 2025
- Platform
- linux/amd64
- Imports
- 9 packages
- Last checked
- 1 week ago –
Tools for package owners.