scheduler

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2021 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GoCatVersion = "2.0.0"
)

Variables

View Source
var Aggregator = CatLocalAggregator{
	Event:       newEventAggregator(),
	Transaction: newTransactionAggregator(),
	Metric:      newMetricAggregator(),
}
View Source
var Manager = catMessageManager{
	// contains filtered or unexported fields
}
View Source
var Monitor = &catMonitor{
	scheduleMixin: makeScheduleMixedIn(signalMonitorExit),
	collectors: []Collector{
		&memStatsCollector{},
		&cpuInfoCollector{
			lastTime:    &cpu.TimesStat{},
			lastCPUTime: 0,
		},
	},
}
View Source
var Router = &catRouterConfig{
	scheduleMixin: makeScheduleMixedIn(signalRouterExit),
	sample:        1.0,
	routers:       make([]config.ServerAddress, 0),
	ticker:        nil,
}
View Source
var Scheduler = catScheduler{
	// contains filtered or unexported fields
}
View Source
var Sender = &catMessageSender{
	scheduleMixin: makeScheduleMixedIn(signalSenderExit),
	normal:        make(chan message.Messager, normalPriorityQueueSize),
	high:          make(chan message.Messager, highPriorityQueueSize),
	chConn:        make(chan net.Conn),
	encoder:       encoder.NewPlainTextEncoder(),
	buf:           bytes.NewBuffer([]byte{}),
	conn:          nil,
}

Functions

func AddMonitorCollector

func AddMonitorCollector(collector Collector)

func Background

func Background(p scheduleMixer)

func Disable

func Disable()

func Enable

func Enable()

func IsEnabled

func IsEnabled() bool

Types

type Buf

type Buf struct {
	bytes.Buffer
}

func (*Buf) WriteInt

func (b *Buf) WriteInt(i int) (err error)

func (*Buf) WriteUInt64

func (b *Buf) WriteUInt64(i uint64) (err error)

type CatLocalAggregator

type CatLocalAggregator struct {
	Event       *eventAggregator
	Transaction *transactionAggregator
	Metric      *metricAggregator
}

func (*CatLocalAggregator) Background

func (p *CatLocalAggregator) Background()

type Collector

type Collector interface {
	GetId() string
	GetDesc() string
	GetProperties() map[string]string
}

Jump to

Keyboard shortcuts

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