home: github.com/shurcooL/home/httphandler Index | Files

package httphandler

import "github.com/shurcooL/home/httphandler"

Package httphandler contains API handlers used by home.

Index

Package Files

doc.go events.go reactions.go users.go

type Events Uses

type Events struct {
    Events events.Service
}

Events is an API handler for events.Service.

func (Events) List Uses

func (h Events) List(w http.ResponseWriter, req *http.Request) error

type Reactions Uses

type Reactions struct {
    Reactions reactions.Service
}

Reactions is an API handler for reactions.Service.

func (Reactions) GetOrToggle Uses

func (h Reactions) GetOrToggle(w http.ResponseWriter, req *http.Request) error

func (Reactions) List Uses

func (h Reactions) List(w http.ResponseWriter, req *http.Request) error

type Users Uses

type Users struct {
    Users users.Service
}

Users is an API handler for users.Service.

func (Users) Get Uses

func (h Users) Get(w http.ResponseWriter, req *http.Request) error

func (Users) GetAuthenticated Uses

func (h Users) GetAuthenticated(w http.ResponseWriter, req *http.Request) error

func (Users) GetAuthenticatedSpec Uses

func (h Users) GetAuthenticatedSpec(w http.ResponseWriter, req *http.Request) error

Package httphandler imports 11 packages (graph) and is imported by 2 packages. Updated 2017-07-23. Refresh now. Tools for package owners.