sysconfig

package
v0.0.0-...-2e4994d Latest Latest
Warning

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

Go to latest
Published: May 14, 2014 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	proto.ServiceInstance
	Report uint // how often to collect and send config (seconds)
}

type Manager

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

func NewManager

func NewManager(logger *pct.Logger, factory MonitorFactory, clock ticker.Manager, spool data.Spooler, im *instance.Repo) *Manager

func (*Manager) GetConfig

func (m *Manager) GetConfig() ([]proto.AgentConfig, []error)

func (*Manager) Handle

func (m *Manager) Handle(cmd *proto.Cmd) *proto.Reply

@goroutine[0]

func (*Manager) Start

func (m *Manager) Start() error

func (*Manager) Status

func (m *Manager) Status() map[string]string

@goroutine[1]

func (*Manager) Stop

func (m *Manager) Stop() error

@goroutine[0]

type Monitor

type Monitor interface {
	Start(tickChan chan time.Time, reportChan chan *Report) error
	Stop() error
	Status() map[string]string
	TickChan() chan time.Time
	Config() interface{}
}

type MonitorFactory

type MonitorFactory interface {
	Make(service string, instanceId uint, data []byte) (Monitor, error)
}

type Report

type Report struct {
	proto.ServiceInstance
	Ts       int64 // UTC Unix timestamp
	System   string
	Settings []Setting
}

type Setting

type Setting [2]string

["variable", "value"]

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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