handlers

package
v0.0.0-...-b631e0d Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

func NewController

func NewController(db models.DB) *Controller

func (*Controller) GetHandler

func (c *Controller) GetHandler(w http.ResponseWriter, r *http.Request)

GetHandler returns the current score in a resp object

func (*Controller) SetHandler

func (c *Controller) SetHandler(w http.ResponseWriter, r *http.Request)

SetHandler Sets the value, and returns it in a resp

Jump to

Keyboard shortcuts

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