Documentation ¶
Overview ¶
Package loop implements a generic server loop.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Loop ¶
type Loop struct {
// contains filtered or unexported fields
}
A Loop is a generic server loop.
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
An Option is used to provide additional configuration to a server or to request additional information from the server internals.
func WithConnectionCounter ¶
WithConnectionCounter returns a metric function that indicates how many network connections have been received.
func WithHandler ¶ added in v0.1.3
WithHandler provides a listeners
Click to show internal directories.
Click to hide internal directories.