api

package
v3.1.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2017 License: MIT Imports: 9 Imported by: 1

Documentation

Overview

Package api provides REST API functionality

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(c conf.Config)

Init initializes the api

func Listen

func Listen()

Listen initializes HTTP handlers and listens for the requests

func ProvidersHandler added in v1.8.0

func ProvidersHandler(w http.ResponseWriter, req *http.Request)

ProvidersHandler is the handler for the providers route

func RedirectHandler

func RedirectHandler(w http.ResponseWriter, req *http.Request)

RedirectHandler handles redirect for listen path prefix

func ResponseHandler

func ResponseHandler(w http.ResponseWriter, req *http.Request, data []byte)

ResponseHandler handles HTTP responses

func SearchHandler

func SearchHandler(w http.ResponseWriter, req *http.Request)

SearchHandler is the handler for the search route

Types

This section is empty.

Jump to

Keyboard shortcuts

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