package
0.0.1
Repository: https://github.com/troian/easygo.git
Documentation: pkg.go.dev

# Functions

EpollCreate creates new epoll instance.
Handle creates new Desc with given conn and event.
HandleListener returns descriptor for a net.Listener.
HandleRead creates read descriptor for further use in EventPoll methods.
HandleReadOnce creates read descriptor for further use in EventPoll methods.
HandleReadWrite creates read and write descriptor for further use in EventPoll methods.
HandleWrite creates write descriptor for further use in EventPoll methods.
HandleWriteOnce creates write descriptor for further use in EventPoll methods.
Must is a helper that wraps a call to a function returning (*Desc, error).
New creates new epoll-based EventPoll instance with given config.
NewDesc creates descriptor from custom fd.

# Constants

EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
EpollEvents that are mapped to epoll_event.events possible values.
Event values that configure the EventPoll's behavior.
Event values that could be passed to CallbackFn as additional information event.
EventHup is indicates that some side of i/o operations (receive, send or both) is closed.
Event values that configure the EventPoll's behavior.
EventPollClosed is a special Event value the receipt of which means that the EventPoll instance is closed.
Event values that denote the type of events that caller want to receive.
Event values that could be passed to CallbackFn as additional information event.
Event values that denote the type of events that caller want to receive.
Event values that could be passed to CallbackFn as additional information event.

# Variables

ErrClosed is returned by EventPoll methods to indicate that instance is closed and operation could not be processed.
ErrNotFiler is returned by Handle* functions to indicate that given net.Conn does not provide access to its file descriptor.
ErrNotRegistered is returned by EventPoll Stop() and Resume() methods to indicate that connection with the same underlying file descriptor was not registered before within the poller instance.
ErrRegistered is returned by EventPoll Start() method to indicate that connection with the same underlying file descriptor was already registered within the poller instance.

# Structs

Config contains options for EventPoll configuration.
Desc is a network connection within netpoll descriptor.
Epoll represents single epoll instance.
EpollConfig contains options for Epoll instance configuration.

# Interfaces

EventPoll describes an object that implements logic of polling connections for i/o events such as availability of read() or write() operations.

# Type aliases

CallbackFn is a function that will be called on kernel i/o event notification.
EpollEvent represents epoll events configuration bit mask.
Event represents netpoll configuration bit mask.