Documentation ¶
Index ¶
- Constants
- func ApplyVersioningFromHeader(echo *echo.Echo)
- func NewContext() context.Context
- func NewEchoServer() *echo.Echo
- func RegisterGroupFunc(groupName string, echo *echo.Echo, builder func(g *echo.Group)) *echo.Echo
- func RunHttpServer(ctx context.Context, echo *echo.Echo, log logger.ILogger, cfg *EchoConfig) error
- type EchoConfig
Constants ¶
View Source
const ( MaxHeaderBytes = 1 << 20 ReadTimeout = 15 * time.Second WriteTimeout = 15 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func ApplyVersioningFromHeader ¶
func ApplyVersioningFromHeader(echo *echo.Echo)
func NewContext ¶
func NewEchoServer ¶
func NewEchoServer() *echo.Echo
func RegisterGroupFunc ¶
func RegisterGroupFunc(groupName string, echo *echo.Echo, builder func(g *echo.Group)) *echo.Echo
func RunHttpServer ¶
Types ¶
type EchoConfig ¶
type EchoConfig struct { Port string `mapstructure:"port" validate:"required"` Development bool `mapstructure:"development"` BasePath string `mapstructure:"basePath" validate:"required"` DebugErrorsResponse bool `mapstructure:"debugErrorsResponse"` IgnoreLogUrls []string `mapstructure:"ignoreLogUrls"` Timeout int `mapstructure:"timeout"` Host string `mapstructure:"host"` }
Click to show internal directories.
Click to hide internal directories.