controlplane

package
v2.0.0-beta.6+incompat... Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2018 License: Apache-2.0 Imports: 44 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
}

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