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
Click to show internal directories.
Click to hide internal directories.