Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New() ports.HTTPRouter
New creates a new chi router that implements ports.HTTPRouter.
func NewMiddleware ¶
func NewMiddleware() ports.HTTPMiddleware
NewMiddleware creates a new middleware instance that implements ports.HTTPMiddleware.
func NewURLParamExtractor ¶
func NewURLParamExtractor() ports.URLParamExtractor
NewURLParamExtractor creates a new URL parameter extractor.
Types ¶
type Middleware ¶
type Middleware struct{}
Middleware provides common middleware functions.
func (*Middleware) RealIP ¶
func (m *Middleware) RealIP() func(http.Handler) http.Handler
RealIP returns the real IP middleware.
type URLParamExtractor ¶
type URLParamExtractor struct{}
URLParamExtractor implements ports.URLParamExtractor.
Click to show internal directories.
Click to hide internal directories.