Documentation ¶
Index ¶
- func HandleCurrent[C context.Context](config *route.Configuration[C], path string, router chi.Router)
- func HandleSubpath[C context.Context](config *route.Configuration[C], router chi.Router)
- func HttpHandler[C context.Context](middlewares []route.Middleware, config *route.Configuration[C]) http.Handler
- func New[C context.Context](configurations ...runtime.Configuration[*Runtime[C]]) runtime.Runtime
- func WithController[C context.Context](path string, method string, controller mvc.Controller[C], ...) runtime.Configuration[*Runtime[C]]
- func WithCustom[C context.Context](path string, method string, handler route.Handler[C], errorHandler route.Error) runtime.Configuration[*Runtime[C]]
- func WithDecorator[C context.Context](decorator ...route.Decorator[C]) runtime.Configuration[*Runtime[C]]
- func WithHttpConfiguration[C context.Context](config runtime.Configuration[*runtime.HttpRunnable]) runtime.Configuration[*Runtime[C]]
- func WithHttpHandler[C context.Context](path string, method string, handler http.Handler) runtime.Configuration[*Runtime[C]]
- func WithMiddleware[C context.Context](middleware ...route.Middleware) runtime.Configuration[*Runtime[C]]
- func WithPage[C context.Context, M any](path string, method string, pageHandler page.Handler[C, M], ...) runtime.Configuration[*Runtime[C]]
- func WithPort[C context.Context](port int) runtime.Configuration[*Runtime[C]]
- func WithStatic[C context.Context](prefix string, dir string) runtime.Configuration[*Runtime[C]]
- func WithTls[C context.Context](certPath string, keyPath string) runtime.Configuration[*Runtime[C]]
- type Runtime
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleCurrent ¶
func HandleCurrent[C context.Context](config *route.Configuration[C], path string, router chi.Router)
func HandleSubpath ¶
func HandleSubpath[C context.Context](config *route.Configuration[C], router chi.Router)
func HttpHandler ¶
func HttpHandler[C context.Context](middlewares []route.Middleware, config *route.Configuration[C]) http.Handler
func WithController ¶ added in v0.0.6
func WithCustom ¶ added in v0.0.9
func WithDecorator ¶
func WithHttpConfiguration ¶
func WithHttpConfiguration[C context.Context](config runtime.Configuration[*runtime.HttpRunnable]) runtime.Configuration[*Runtime[C]]
func WithHttpHandler ¶ added in v0.0.8
func WithMiddleware ¶
func WithMiddleware[C context.Context](middleware ...route.Middleware) runtime.Configuration[*Runtime[C]]
func WithStatic ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.