server

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 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 New

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

New 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