api

package
v0.0.0-...-75fea4d Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

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

func GetAllUsers

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

func GetSeries

func GetSeries(db *sqlx.DB) httprouter.Handle

be sure to properly pass the database connection to the function. Not 100% sure whether or not this is the right way to do things

func GetSeriesDetail

func GetSeriesDetail(db *sqlx.DB) httprouter.Handle

func Login

Types

type JSONSeries

type JSONSeries struct {
	ID          int64  `json:"id"`
	Title       string `json:"title"`
	Description string `json:"description"`
	PosterURL   string `json:"poster"`
	Seasons     int    `json:"seasons"`
	Episodes    []models.Episode
}

Jump to

Keyboard shortcuts

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