api

package
v0.0.0-...-ede0ace Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Api

type Api struct {
	// contains filtered or unexported fields
}

func InitRoute

func InitRoute(c *configuration.Conf) *Api

func (*Api) Close

func (a *Api) Close()

todo pass a context for timeout

func (*Api) Handler

func (a *Api) Handler() http.Handler

type ApiError

type ApiError struct {
	Msg string `json:"msg"`
}

Jump to

Keyboard shortcuts

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