Documentation ¶
Overview ¶
Package chi provides some basic implementations for building routers based on go-chi/chi
Index ¶
Constants ¶
View Source
const ChiDefaultDebugPattern = "/__debug/"
Variables ¶
This section is empty.
Functions ¶
func DefaultFactory ¶
func NewEndpointHandler ¶
func NewEndpointHandler(cfg *config.EndpointConfig, proxy proxy.Proxy) http.HandlerFunc
func NewFactory ¶
Types ¶
type Config ¶
type Config struct { Engine chi.Router Middlewares chi.Middlewares HandlerFactory HandlerFactory ProxyFactory proxy.Factory Logger log.Logger DebugPattern string RunServer RunServerFunc }
type HandlerFactory ¶
type HandlerFactory func(*config.EndpointConfig, proxy.Proxy) http.HandlerFunc
type RunServerFunc ¶
Click to show internal directories.
Click to hide internal directories.