api

package
v0.0.0-...-ea980e2 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2015 License: Apache-2.0 Imports: 6 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 {
	Logger *log.Logger
	Config map[string]string
}

API is a simple API server for the module types and factories.

func New

func New() *API

New returns a new instance of the API.

func (*API) GetReleases

func (a *API) GetReleases(w http.ResponseWriter, r *http.Request)

GetReleases is the handler for /v3/releases

func (*API) Listen

func (a *API) Listen()

Listen starts the API server on the configured port.

type Error

type Error struct {
	Errors []string `json:"errors"`
}

Error models a forge error response object.

Jump to

Keyboard shortcuts

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