handlers

package
v0.0.0-...-9994f1b Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

type Handlers struct {
	// contains filtered or unexported fields
}

Handlers provides methods servicing poros HTTP routes.

func NewHandlers

func NewHandlers(prod bool) *Handlers

NewHandlers initialises a new Handlers instance.

func (*Handlers) GetAuthState

func (*Handlers) GetAuthState(ctx *router.Context)

GetAuthState returns data about the current user and the access token associated with the current session.

func (*Handlers) IndexPage

func (h *Handlers) IndexPage(ctx *router.Context)

IndexPage serves a GET request for the index page.

func (*Handlers) RegisterRoutes

func (h *Handlers) RegisterRoutes(r *router.Router, mw router.MiddlewareChain)

RegisterRoutes registers routes explicitly handled by the handler.

Jump to

Keyboard shortcuts

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