Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RouteRegistrar ¶
RouteRegistrar lets each handler/module register its own routes.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServer ¶
func NewServer(cfg ServerConfig, log logger.Logger, binder echo.Binder, validatorRegistrars []ValidationRegistrar, middlewares []echo.MiddlewareFunc, registrars ...RouteRegistrar) (*Server, error)
type ServerConfig ¶
type ServerConfig struct {
Address string
ReadTimeout time.Duration
WriteTimeout time.Duration
IdleTimeout time.Duration
IPExtractor echo.IPExtractor
}
ServerConfig holds HTTP server settings. Filled by app from infra config so delivery does not depend on infra.
type ValidationRegistrar ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package binding provides Echo binding helpers.
|
Package binding provides Echo binding helpers. |
|
handler
|
|
|
middleware
|
|
|
openapi
|
|
|
gen
Package openapi provides primitives to interact with the openapi HTTP API.
|
Package openapi provides primitives to interact with the openapi HTTP API. |
Click to show internal directories.
Click to hide internal directories.