handlers

package
v0.0.0-...-f736add Latest Latest
Warning

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

Go to latest
Published: May 17, 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)

Set repo for handlers

Types

type Repository

type Repository struct {
	Conf *config.AppConf
}
var Repo *Repository

Repo the respository that handlers use

func NewRepo

func NewRepo(c *config.AppConf) *Repository

Create new repo

func (*Repository) AboutHandler

func (rep *Repository) AboutHandler(w http.ResponseWriter, r *http.Request)

func (*Repository) HelloHandler

func (rep *Repository) HelloHandler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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