router

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL