api

package
v0.0.0-...-a5a6d41 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package api serves all the API endpoints of the app

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	Services services.Handler
}

Handler holds all the services which will serve the endpoints

func NewHandler

func NewHandler(s services.Handler) Handler

NewHandler returns a handler instance with all the services initialized

func (*Handler) Home

func (h *Handler) Home(rw http.ResponseWriter, req *http.Request)

Home is the home page handler

func (*Handler) Routes

func (handler *Handler) Routes() []*webgo.Route

Routes returns all the HTTP routes of the app

Jump to

Keyboard shortcuts

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