handlers

package
v0.0.0-...-63f9ede Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EchoParam

func EchoParam(message messageQueryParam) map[string]string

func EditUser

func EditUser(id userIdQueryParam, user *User)

func Error

func Error() error

Types

type Counter

type Counter struct {
	HitCount int `json:"count"`
	// contains filtered or unexported fields
}

func (Counter) Count

func (c Counter) Count() map[string]interface{}

func (*Counter) Incr

func (c *Counter) Incr() *Counter

type NachoBody

type NachoBody Nachos

func GetNachos

func GetNachos() *NachoBody

type Nachos

type Nachos struct {
	Toppings []*topping
}

func HandleCustom

func HandleCustom(nachos *Nachos) *Nachos

func (*Nachos) Documentation

func (n *Nachos) Documentation() string

func (*Nachos) FromRequest

func (n *Nachos) FromRequest(*http.Request) error

func (*Nachos) ToResponse

func (n *Nachos) ToResponse(http.ResponseWriter) error

type User

type User struct {
	DisplayName string
}

func GetUser

func GetUser(id userIdQueryParam) *User

func (*User) Documentation

func (example *User) Documentation() string

Jump to

Keyboard shortcuts

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