routing

package
v0.0.0-...-dde11d8 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefinitionHandlerProvider = &DefinitionHandlerType{Provider: &urbanDictionary.DefinitionProvider{}}

DefinitionHandlerProvider - The service that will provide definitions

Functions

func SetupRoutes

func SetupRoutes() *mux.Router

SetupRoutes - Sets up all routes for the service

Types

type DefinitionHandlerType

type DefinitionHandlerType struct {
	Provider types.DefinitionProvider
}

DefinitionHandlerType - Set the type of provider to use for definitions

type HealthCheck

type HealthCheck struct {
	Status  string `json:"status"`
	Version string `json:"version"`
	Commit  string `json:"commit"`
	Branch  string `json:"branch"`
}

HealthCheck - response format for health handler

Jump to

Keyboard shortcuts

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