Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Component = &app.Component{ Dependencies: app.Components{ logger.Component, limiter.Component, listener.Component, runner.Component, }, Constructor: app.Constructor(func(container container.Container) error { return container.Provide(New) }), Run: app.Run(func(container container.Container) error { return container.Invoke(func(server Server, runner runner.Runner) error { return runner.AddProcesses(server) }) }), }
Functions ¶
func IsErrorClosed ¶
Types ¶
type Connection ¶
func NewConnection ¶
func NewConnection(ctx context.Context, conn net.Conn) *Connection
func (*Connection) Context ¶
func (connection *Connection) Context() context.Context
type Handler ¶
type Handler interface {
Handle(connection *Connection) error
}
type HandlerFunc ¶
type HandlerFunc func(connection *Connection) error
func (HandlerFunc) Handle ¶
func (handler HandlerFunc) Handle(connection *Connection) error
type Middleware ¶
type MiddlewareFunc ¶
func (MiddlewareFunc) Middleware ¶
func (middleware MiddlewareFunc) Middleware(handler Handler) Handler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.