handlers

package
v0.0.0-...-e7a9887 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: AGPL-3.0 Imports: 44 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Router             chi.Router
	Renderer           Renderer
	AuthService        services.AuthService
	UserService        services.UserService
	ClientService      services.ClientService
	SessionManager     *scs.SessionManager
	EmailService       services.EmailService
	AuthGatewayService services.AuthGatewayService
	StaticFS           fs.FS
}

func NewHandler

func NewHandler() *Handler

func (*Handler) RegisterRoutes

func (h *Handler) RegisterRoutes()

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Renderer

type Renderer interface {
	// contains filtered or unexported methods
}

func NewRenderer

func NewRenderer(htmlFS fs.FS) (Renderer, error)

type URL

type URL struct {
	URL *url.URL
}

func (URL) MarshalText

func (u URL) MarshalText() ([]byte, error)

func (*URL) UnmarshalText

func (u *URL) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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