server

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func OnUISocket

func OnUISocket(h *Hub, w http.ResponseWriter, r *http.Request)

Types

type Hub

type Hub struct {
	ResetStats chan bool
	// contains filtered or unexported fields
}

func NewHub

func NewHub(hubAddr string, masterApiUrls string, daemonPublicUrl string,
	etcdIps string, etcdCertPath string) *Hub

func (*Hub) AddDaemon added in v1.1.9

func (h *Hub) AddDaemon(d *models.Daemon, c *rpc2.Client)

func (*Hub) Daemons

func (h *Hub) Daemons() []models.Daemon

func (*Hub) RemoveDaemon added in v1.1.9

func (h *Hub) RemoveDaemon(host string)

func (*Hub) Serve

func (h *Hub) Serve()

func (*Hub) StartChecks added in v1.1.9

func (h *Hub) StartChecks(msg interface{}) models.BaseModel

func (*Hub) StopChecks added in v1.1.9

func (h *Hub) StopChecks() models.BaseModel

Jump to

Keyboard shortcuts

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