handlers

package
v0.0.0-...-39448d1 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHandlers

func NewHandlers(r *Repository)

NewHandlers sets the repository for the handlers

Types

type Repository

type Repository struct {
	App *config.AppConfig
}

Repository is the repository type

var Repo *Repository

Repo the repository used by the handlers

func NewRepo

func NewRepo(a *config.AppConfig) *Repository

NewRepo creates a new repository

func (*Repository) About

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

About is the about page handler

func (*Repository) Home

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

Home is the homepage handler

Jump to

Keyboard shortcuts

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