Documentation ¶ Index ¶ type Mux func New(logger *slog.Logger, auth auth.Auth, provider user.Provider) *Mux func (m *Mux) Convey() func (m *Mux) HandleAuth(refreshTTl time.Duration) func (m *Mux) HandleUsers(cfg jwt.Config) func (m *Mux) Prepare(cfg jwt.Config) func (m *Mux) Swagger() type Router Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Mux ¶ type Mux struct { *chi.Mux Auth auth.Auth UserProvider user.Provider // contains filtered or unexported fields } func New ¶ func New( logger *slog.Logger, auth auth.Auth, provider user.Provider, ) *Mux func (*Mux) Convey ¶ func (m *Mux) Convey() func (*Mux) HandleAuth ¶ func (m *Mux) HandleAuth(refreshTTl time.Duration) func (*Mux) HandleUsers ¶ func (m *Mux) HandleUsers(cfg jwt.Config) func (*Mux) Prepare ¶ func (m *Mux) Prepare(cfg jwt.Config) func (*Mux) Swagger ¶ func (m *Mux) Swagger() type Router ¶ type Router interface { http.Handler Convey() HandleAuth(refreshTTl time.Duration) HandleUsers(cfg jwt.Config) } Source Files ¶ View all Source files router.go Directories ¶ Show internal Expand all Path Synopsis middleware Click to show internal directories. Click to hide internal directories.