api

package
v0.0.0-...-5a10bbc Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

handlers contains the handlers to manage API endpoints

routes handles setting up routes for our API

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContactHandler

func ContactHandler(w http.ResponseWriter, r *http.Request, gapi *governor.API)

ContactHandler handles POST data for a Contact. The handler is wrapped to provide convenience access to a governor.API

func SetupRoutes

func SetupRoutes(gapi *governor.API)

SetupRoutes defines and associates routes to handlers. Use a wrapper convention to pass a governor API to each handler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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