api

package
v0.0.0-...-633c506 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCassette

func GetCassette(services *config.Services) httprouter.Handle

GetCassette gets mixed songs from model and returns them.

func GetHealth

func GetHealth(w http.ResponseWriter, r *http.Request, _ httprouter.Params)

GetHealth returns the app's health.

func GetSongs

func GetSongs(services *config.Services) httprouter.Handle

GetSongs gets songs from model and returns them.

Types

type Health

type Health struct {
	AppName   string `json:"application_name"`
	Message   string `json:"message"`
	StartDate string `json:"start_date"`
	UpTime    string `json:"up_time"`
}

Health check struct stores values for output to health check requests.

Jump to

Keyboard shortcuts

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