package
0.1.0
Repository: https://github.com/sunvim/utils.git
Documentation: pkg.go.dev

# Functions

Create creates a new poll.
ListenAndServe listens on the network address and then calls Serve with handler to handle requests on incoming connections.
NewHandler returns a new Handler.
Serve accepts incoming connections on the listener l, and registers the conn fd to poll.

# Constants

READ is the read mode.
WRITE is the write mode.

# Variables

EAGAIN is the error when resource temporarily unavailable.
EOF is the error returned by Read when no more input is available.
ErrHandler is the error when the Handler is nil.
ErrHandlerFunc is the error when the HandlerFunc is nil.
ErrListener is the error when the Listener is nil.
ErrServeFunc is the error when the Serve func is nil.
ErrServerClosed is returned by the Server's Serve and ListenAndServe methods after a call to Close.
ErrTimeout is the error returned by SetTimeout when time.Duration d < time.Millisecond.
ErrUpgradeFunc is the error when the Upgrade func is nil.
Tag is the poll type.

# Structs

ConnHandler implements the Handler interface.
DataHandler implements the Handler interface.
Event represents the poll event for the poller.
Poll represents the poll that supports non-blocking I/O on file descriptors with polling.
Server defines parameters for running a server.

# Interfaces

No description provided by the author
Context is returned by Upgrade for serving.
Handler responds to a single request.

# Type aliases

Mode represents the read/write mode.