handlers

package
v0.0.0-...-8ab5bc6 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2021 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Health

type Health struct {
	Status bool `json:"status"`
}

func (Health) ServeHTTP

func (h Health) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Home

type Home struct {
}

func (Home) ServeHTTP

func (h Home) ServeHTTP(w http.ResponseWriter, r *http.Request)

handleHome returns the html of our home page to the person making the request.

type Quote

type Quote struct {
	Author string `json:"author"`
	Title  string `json:"title"`
	Text   string `json:"text"`
	Action string `json:"action"`
}

func (Quote) ServeHTTP

func (q Quote) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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