itest

package
v0.20.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EchoService = "test.echo"
	EchoProtoID = "/test/echo"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Echo

type Echo struct {
	Host host.Host
	// contains filtered or unexported fields
}

func NewEcho

func NewEcho(h host.Host) *Echo

func (*Echo) BeforeDone

func (e *Echo) BeforeDone(f func() error)

func (*Echo) BeforeRead

func (e *Echo) BeforeRead(f func() error)

func (*Echo) BeforeReserve

func (e *Echo) BeforeReserve(f func() error)

func (*Echo) BeforeWrite

func (e *Echo) BeforeWrite(f func() error)

func (*Echo) Done

func (e *Echo) Done(f func())

func (*Echo) Echo

func (e *Echo) Echo(p peer.ID, what string) error

func (*Echo) Status

func (e *Echo) Status() EchoStatus

type EchoStatus

type EchoStatus struct {
	StreamsIn                 int
	EchosIn, EchosOut         int
	IOErrors                  int
	ResourceServiceErrors     int
	ResourceReservationErrors int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL