controlplane

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2019 License: Apache-2.0 Imports: 48 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVersionHandler

func NewVersionHandler(version string) func(w http.ResponseWriter, r *http.Request)

Types

type Config

type Config struct {
	Port          int
	Addr          string
	StorageMode   string
	StorageURI    string
	TemplatesDir  string
	SpawnInterval time.Duration

	ReadTimeout  time.Duration
	WriteTimeout time.Duration
	IdleTimeout  time.Duration

	PprofListenStr string

	ProxiesPortRange proxy.PortRange

	Version string
}

Config is the server configuration

type Server

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

func New

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

func NewServer

func NewServer(router *mux.Router, cfg *Config) *Server

func (*Server) Shutdown

func (srv *Server) Shutdown()

func (*Server) Start

func (srv *Server) Start()

Jump to

Keyboard shortcuts

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