Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Component = compogo.Component{ Dependencies: compogo.Components{ &token.Component, &chi.Component, }, PreExecute: compogo.StepFunc(func(container compogo.Container) error { return container.Invoke(func(r httpServer.Router, auth *token.Auth) { r.Use(auth) }) }), }
Component — компонент Token Auth для chi-роутера. Подключает Token Auth middleware ко всем маршрутам роутера.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.