log

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	DEFAULT_LOG_FILE  = ""
	DEFAULT_LOG_LEVEL = "info"
)
View Source
const (
	BUFFER_SIZE int = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Level   string
	File    string
	Offline bool
}

type Manager

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

func NewManager

func NewManager(client pct.WebsocketClient, logChan chan *proto.LogEntry) *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) Relay

func (m *Manager) Relay() *Relay

@goroutine[0]

func (*Manager) Start

func (m *Manager) Start() error

@goroutine[0]

func (*Manager) Status

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

@goroutine[0]

func (*Manager) Stop

func (m *Manager) Stop() error

@goroutine[0]

type Relay

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

func NewRelay

func NewRelay(client pct.WebsocketClient, logChan chan *proto.LogEntry, logFile string, logLevel byte, offline bool) *Relay

func (*Relay) LogChan

func (r *Relay) LogChan() chan *proto.LogEntry

func (*Relay) LogFileChan

func (r *Relay) LogFileChan() chan string

func (*Relay) LogLevelChan

func (r *Relay) LogLevelChan() chan byte

func (*Relay) Run

func (r *Relay) Run()

func (*Relay) Status

func (r *Relay) Status() map[string]string

Jump to

Keyboard shortcuts

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