api

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2016 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTPAddressSpec string
	CatalogMap      store.CatalogMap
	Authenticator   auth.Authenticator
	Middlewares     []rest.Middleware
	RequireHTTPS    bool
}

Config encapsulates REST server configuration parameters

type Server

type Server interface {
	Start() error
	Stop()
}

Server defines an interface for controlling server lifecycle

func NewServer

func NewServer(conf *Config) (Server, error)

NewServer creates a new server based on the provided configuration options. Returns a valid Server interface on success or an error on failure

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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