listenerer_interface

package
v0.0.0-20240423 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn interface {
	io.ReadWriteCloser
	LocalAddr() net.Addr
	RemoteAddr() net.Addr
}

type Enabler

type Enabler interface {
	Enable()
	WaitEnabled(timeout time.Duration) error
}

type ListenOption

type ListenOption = option.ApplyOption

type Listener

type Listener interface {
	Accept() (Conn, error)
	Close() error
	Addr() net.Addr
}

type Listenerer

type Listenerer interface {
	Listen(ctx context.Context, network, address string, opts ...ListenOption) (Listener, error)
}

Jump to

Keyboard shortcuts

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