Documentation
¶
Index ¶
- Variables
- func Authorization(authService AuthService) mux.MiddlewareFunc
- func ContextKeyValue(key interface{}, constructor GenericConstructor) mux.MiddlewareFunc
- func Cors(allowOrigins []string) mux.MiddlewareFunc
- func DefaultParamsConstructor(r *http.Request, w http.ResponseWriter) *composables.Params
- func LogRequests() mux.MiddlewareFunc
- func NavItems(app application.Application) mux.MiddlewareFunc
- func Provide(k constants.ContextKey, v any) mux.MiddlewareFunc
- func RequestParams(constructor ParamsConstructor) mux.MiddlewareFunc
- func Transactions(db *gorm.DB) mux.MiddlewareFunc
- func WithLocalizer(bundle *i18n.Bundle) mux.MiddlewareFunc
- func WithLogger(logger *log.Logger) mux.MiddlewareFunc
- type AuthService
- type GenericConstructor
- type ParamsConstructor
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowMethods = []string{ http.MethodConnect, http.MethodOptions, http.MethodGet, http.MethodPost, http.MethodHead, http.MethodPatch, http.MethodPut, http.MethodDelete, }
Functions ¶
func Authorization ¶
func Authorization(authService AuthService) mux.MiddlewareFunc
func ContextKeyValue ¶
func ContextKeyValue(key interface{}, constructor GenericConstructor) mux.MiddlewareFunc
func Cors ¶
func Cors(allowOrigins []string) mux.MiddlewareFunc
func DefaultParamsConstructor ¶
func DefaultParamsConstructor(r *http.Request, w http.ResponseWriter) *composables.Params
func LogRequests ¶
func LogRequests() mux.MiddlewareFunc
func NavItems ¶
func NavItems(app application.Application) mux.MiddlewareFunc
func Provide ¶ added in v0.0.2
func Provide(k constants.ContextKey, v any) mux.MiddlewareFunc
func RequestParams ¶
func RequestParams(constructor ParamsConstructor) mux.MiddlewareFunc
func Transactions ¶
func Transactions(db *gorm.DB) mux.MiddlewareFunc
func WithLocalizer ¶
func WithLocalizer(bundle *i18n.Bundle) mux.MiddlewareFunc
func WithLogger ¶
func WithLogger(logger *log.Logger) mux.MiddlewareFunc
Types ¶
type AuthService ¶
type GenericConstructor ¶
type GenericConstructor func(r *http.Request, w http.ResponseWriter) interface{}
type ParamsConstructor ¶
type ParamsConstructor func(r *http.Request, w http.ResponseWriter) *composables.Params
Click to show internal directories.
Click to hide internal directories.