modulepackage
0.0.1
Repository: https://github.com/templatedop/ftptemplate.git
Documentation: pkg.go.dev
# Functions
AsHandler registers a handler into Fx.
AsHandlersGroup registers a handlers group into Fx.
AsMiddleware registers a middleware into Fx.
GetReturnType returns the return type of a target.
GetType returns the type of a target.
IsConcreteHandler returns true if the handler is a concrete [echo.HandlerFunc] implementation.
IsConcreteMiddleware returns true if the middleware is a concrete [echo.MiddlewareFunc] implementation.
NewFxHttpServer returns a new [echo.Echo].
NewFxHttpServerModuleInfo returns a new [FxHttpServerModuleInfo].
NewFxHttpServerRegistry returns as new [HttpServerRegistry].
NewHandlerDefinition returns a new [HandlerDefinition].
NewHandlerRegistration returns a new [HandlerRegistration].
NewHandlersGroupDefinition returns a new [HandlersGroupDefinition].
NewHandlersGroupRegistration returns a new [HandlersGroupRegistration].
NewMiddlewareDefinition returns a new [MiddlewareDefinition].
NewMiddlewareRegistration returns a new [MiddlewareRegistration].
NewResolvedHandler returns a new [ResolvedHandler].
NewResolvedHandlersGroup returns a new [ResolvedHandlersGroup].
NewResolvedMiddleware returns a new [ResolvedMiddleware].
RegisterHandler registers a handler registration into Fx.
RegisterHandlersGroup registers a handlers group registration into Fx.
RegisterMiddleware registers a middleware registration into Fx.
Sanitize transforms a given string to not contain spaces or dashes, and to be in lower case.
Split trims and splits a provided string by comma.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
FxHttpServerModuleInfo is a module info collector for fxcore.
FxHttpServerParam allows injection of the required dependencies in [NewFxHttpServer].
FxHttpServerRegistryParam allows injection of the required dependencies in [NewFxHttpServerRegistry].
HandlerRegistration is a handler registration.
HandlersGroupRegistration is a handlers group registration.
HttpServerRegistry is the registry collecting middlewares, handlers, handlers groups and their definitions.
MiddlewareRegistration is a middleware registration.
# Interfaces
Handler is the interface for handlers.
HandlerDefinition is the interface for handlers definitions.
HandlersGroupDefinition is the interface for handlers groups definitions.
Middleware is the interface for middlewares.
MiddlewareDefinition is the interface for middlewares definitions.
ResolvedHandler is an interface for the resolved handlers.
ResolvedHandlersGroup is an interface for the resolved handlers groups.
ResolvedMiddleware is an interface for the resolved middlewares.
# Type aliases
MiddlewareKind is an enum for the middleware kinds (global, pre, post).