handlers

package
v1.0.54 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlers added in v1.0.34

func NewHandlers(r *Repository)

NewHandlers sets the repository for the handlers

Types

type Repository added in v1.0.34

type Repository struct {
	App *config.AppConfig
}

Repository is the repository type

var Repo *Repository

Repo the repository used by the handlers

func NewRepo added in v1.0.34

func NewRepo(a *config.AppConfig) *Repository

NewRepo creates a new repository

func (*Repository) About added in v1.0.34

func (m *Repository) About(w http.ResponseWriter, r *http.Request)

About is the handler for the about page

func (*Repository) Home added in v1.0.34

func (m *Repository) Home(w http.ResponseWriter, r *http.Request)

Home is the handler for the home page

Jump to

Keyboard shortcuts

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