Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("echo", fx.Provide( NewEcho, ), fx.Invoke( RegisterRoutes, StartEchoServer, ), )
Functions ¶
func ErrorLogger ¶ added in v0.0.18
func ErrorLogger(log logging.EventLogger) echo.MiddlewareFunc
ErrorLogger is a middleware that logs errors to the provided logger.
func RegisterRoutes ¶
func RegisterRoutes(e *echo.Echo, params RouteParams)
RegisterRoutes registers all routes from collected registrars
Types ¶
type EchoServer ¶
type EchoServer struct {
// contains filtered or unexported fields
}
EchoServer wraps Echo with fx lifecycle management
func StartEchoServer ¶ added in v0.0.13
StartEchoServer runs a Echo server with lifecycle management
func (*EchoServer) Address ¶
func (s *EchoServer) Address() string
Address returns the server's listening address
type RouteParams ¶
type RouteParams struct {
fx.In
Registrars []RouteRegistrar `group:"route_registrar"`
}
RouteParams collects all route registrars
type RouteRegistrar ¶
RouteRegistrar defines the interface for services that register Echo routes
Click to show internal directories.
Click to hide internal directories.