apiserver

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2016 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Overview

Package apiserver provides a HTTP gateway for invoking Lever methods without the use of a gRPC client.

Index

Constants

View Source
const PackageName = "apiserver"

PackageName is the name of this package.

Variables

View Source
var (
	// ListenPortFlag is the port the API server should listen on.
	ListenPortFlag = config.DeclareString(PackageName, "listenPort", "3503")
	// DisableAPIServerFlag disables the creation of an HTTP API server.
	DisableAPIServerFlag = config.DeclareBool(PackageName, "disableAPIServer")
)

Functions

This section is empty.

Types

type Server

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

Server is an HTTP API server that acts as a gateway to Lever services for non-gRPC clients.

func NewServer

func NewServer() (server *Server, err error)

NewServer returns a new instance of Server.

func (*Server) ServeHTTP

func (server *Server) ServeHTTP(resp http.ResponseWriter, req *http.Request)

ServeHTTP serves individual HTTP requests.

Jump to

Keyboard shortcuts

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