controlplane

package
v2.0.0-rc.3+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2018 License: Apache-2.0 Imports: 49 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
	EtcdUrl       string
	TemplatesDir  string
	SpawnInterval time.Duration
	UiDir         string

	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