pipe

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetStatusFunc

func SetStatusFunc(f StatusFunc)

Types

type Conn

type Conn struct {
	// contains filtered or unexported fields
}

func (*Conn) Close

func (c *Conn) Close() error

func (*Conn) ID

func (c *Conn) ID() string

func (*Conn) IsClosed

func (c *Conn) IsClosed() bool

func (*Conn) IsReady

func (c *Conn) IsReady() bool

func (*Conn) Read

func (c *Conn) Read(p []byte) (n int, err error)

func (*Conn) WaitClosed

func (c *Conn) WaitClosed(ctx context.Context) error

WaitClosed blocks until the underlying connection has been closed or the provided context is canceled.

func (*Conn) WaitReady

func (c *Conn) WaitReady(ctx context.Context) error

func (*Conn) Write

func (c *Conn) Write(p []byte) (n int, err error)

type Dialer

type Dialer interface {
	Dial(ctx context.Context, to string) (*Conn, error)
}

func CreateDialer

func CreateDialer(id string, sig signal.Signal) (Dialer, error)

type DialerFunc

type DialerFunc func(ctx context.Context, to string) (*Conn, error)

func (DialerFunc) Dial

func (f DialerFunc) Dial(ctx context.Context, to string) (*Conn, error)

type Listener

type Listener interface {
	Listen(ctx context.Context) (*Conn, error)
}

func CreateListener

func CreateListener(id string, sig signal.Signal) (Listener, error)

type ListenerFunc

type ListenerFunc func(ctx context.Context) (*Conn, error)

func (ListenerFunc) Listen

func (f ListenerFunc) Listen(ctx context.Context) (*Conn, error)

type StatusFunc

type StatusFunc func(conn *Conn, status webrtc.PeerConnectionState)

Directories

Path Synopsis
sse

Jump to

Keyboard shortcuts

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