handlers

package
v0.0.0-...-422f14d Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Root

type Root struct{}

Root is the default app starting page.

func NewRoot

func NewRoot(cfg *config.Config) *Root

NewRoot creates a new root page handler.

func (*Root) ServeHTTP

func (p *Root) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles reqeusts for the root page.

type WhoAmI

type WhoAmI struct{}

WhoAmI shows information about the current user.

func NewWhoAmI

func NewWhoAmI(cfg *config.Config) *WhoAmI

NewRoot creates a new root page handler.

func (*WhoAmI) ServeHTTP

func (p *WhoAmI) ServeHTTP(w http.ResponseWriter, r *http.Request)

WhoAmI shows information about the current user.

Jump to

Keyboard shortcuts

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