api

package
v0.0.0-...-11c8b56 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2018 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package api has our router and HTTP handlers for all of the available api routes

Index

Constants

This section is empty.

Variables

View Source
var Commit string

Commit this version was built against

View Source
var Version string

Version of praelatus

Functions

func New

func New(r repo.Repo, mw middleware.Chain) http.Handler

New will start running the api on the given port

func Routes

func Routes() *mux.Router

Routes will return the mux.Router which contains all of the api routes

Types

This section is empty.

Directories

Path Synopsis
Package middleware contains the HTTP middleware used in the api as well as utility functions for interacting with them
Package middleware contains the HTTP middleware used in the api as well as utility functions for interacting with them
Package utils contains utility functions used throughout the api package
Package utils contains utility functions used throughout the api package
Package v1 contains all of the routes and handlers for v1 of the API
Package v1 contains all of the routes and handlers for v1 of the API

Jump to

Keyboard shortcuts

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