Documentation ¶
Index ¶
Constants ¶
View Source
const (
ServerAddr = "127.0.0.1"
)
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(host server.HostInterface, resourceAnalyzer stats.ResourceAnalyzer, enableCAdvisorJSONEndpoints bool)
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.