api

package
v0.0.0-...-aeaa42d Latest Latest
Warning

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

Go to latest
Published: May 22, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupNewRelic

func SetupNewRelic(licenseKey string, r *mux.Router)

SetupNewRelic sets up monitoring in NewRelic

func StreamsHandler

func StreamsHandler(w http.ResponseWriter, r *http.Request)

StreamsHandler used to handle API request for current streams

Types

type Stream

type Stream struct {
	Image string `json:"image"`
	Link  string `json:"link"`
	Title string `json:"title"`
}

Stream data model

type Streamer

type Streamer struct {
	Stream Stream  `json:"stream"`
	User   db.User `json:"user"`
}

Streamer data model

Jump to

Keyboard shortcuts

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