prizes

package
v0.0.0-...-7f26107 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All(rw http.ResponseWriter, req *http.Request, r render.Render)

func Current

func Current(rw http.ResponseWriter, req *http.Request, r render.Render)

func Get

func Get(rw http.ResponseWriter, req *http.Request, r render.Render, params martini.Params)

Types

type PrizeError

type PrizeError struct {
	Message string `json:"error"`
}

type PrizeResponse

type PrizeResponse struct {
	Prizes       []prize.Prize `json:"prizes"`
	TotalPrizes  int           `json:"total_prizes"`
	CurrentPage  int           `json:"current_page"`
	TotalResults int           `json:"total_results"`
}

Jump to

Keyboard shortcuts

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