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 ¶ added in v1.8.12
Types ¶
type Connection ¶ added in v1.8.12
func NewConnection ¶ added in v1.8.12
func NewConnection(ctx context.Context, conn net.Conn) *Connection
func (*Connection) Context ¶ added in v1.8.12
func (connection *Connection) Context() context.Context
type Handler ¶ added in v1.8.12
type Handler interface {
Handle(connection *Connection) error
}
type HandlerFunc ¶ added in v1.8.12
type HandlerFunc func(connection *Connection) error
func (HandlerFunc) Handle ¶ added in v1.8.12
func (handler HandlerFunc) Handle(connection *Connection) error
type Middleware ¶ added in v1.8.12
type MiddlewareFunc ¶ added in v1.8.12
func (MiddlewareFunc) Middleware ¶ added in v1.8.12
func (middleware MiddlewareFunc) Middleware(handler Handler) Handler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.