server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NetInterface = "eth0"
	ServerAddr   = "127.0.0.1"
	ServerPort   = 10255
)

constants to define server address

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is object to define server

func NewServer

func NewServer(podManager podmanager.Manager) *Server

NewServer creates and returns a new server object

func (*Server) ListenAndServe

func (s *Server) ListenAndServe()

ListenAndServe starts a HTTP server and sets up a listener on the given host/port

Jump to

Keyboard shortcuts

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