Documentation
¶
Index ¶
Constants ¶
View Source
const GROUP_ROUTES = `group:"httproutes"`
Variables ¶
View Source
var Module = fx.Module( "http", fx.Invoke( fx.Annotate( RegisterRoutes, fx.ParamTags(GROUP_ROUTES), ), ), fx.Provide( NewEcho, ), )
Functions ¶
func AsRouteGroup ¶
func RegisterRoutes ¶
func RegisterRoutes(routes []RouteGroup, server *Http)
Types ¶
type Configuration ¶
type Configuration struct { Address string `hcl:"address"` Ratelimit int `hcl:"rate_limit"` Debug bool `hcl:"debug"` TLS *TLSOptions `hcl:"tls,block"` }
type Http ¶
func (*Http) DisableDebugging ¶ added in v0.7.0
func (h *Http) DisableDebugging()
func (*Http) EnableDebugging ¶ added in v0.7.0
func (h *Http) EnableDebugging()
func (*Http) Use ¶
func (h *Http) Use(middleware echo.MiddlewareFunc)
type RouteGroup ¶
type TLSOptions ¶ added in v0.8.0
Click to show internal directories.
Click to hide internal directories.