server

package
v0.0.0-...-adb5aae Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2017 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Config       config.Config
	ContainerMgr mgr.ContainerMgr
	SystemMgr    mgr.SystemMgr
	ImageMgr     mgr.ImageMgr
	VolumeMgr    mgr.VolumeMgr
	// contains filtered or unexported fields
}

Server is a http server which serves restful api to client.

func (*Server) Start

func (s *Server) Start() (err error)

Start setup route table and listen to specified address which currently only supports unix socket and tcp address.

func (*Server) Stop

func (s *Server) Stop() error

Stop will shutdown http server by closing all listeners.

Jump to

Keyboard shortcuts

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