brain

package
v0.0.0-...-a2e7767 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2020 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BroadcastStatistics

func BroadcastStatistics()

Types

type Brain

type Brain struct {
	SystemStats      *stats.SystemStats
	ApplicationStats *stats.ApplicationStats
	DecisionTimes    int64
	// contains filtered or unexported fields
}
var B *Brain

func (*Brain) Emit

func (b *Brain) Emit(e *types.Event)

func (*Brain) GetBufferMaxSizeAndCommitInterval

func (b *Brain) GetBufferMaxSizeAndCommitInterval(id uuid.UUID) (uint64, uint64)

func (*Brain) GetBufferType

func (b *Brain) GetBufferType(id uuid.UUID) types.BufferType

func (*Brain) GetCacheMaxSize

func (b *Brain) GetCacheMaxSize() uint64

func (*Brain) GetKAndVForNewTimeSeries

func (b *Brain) GetKAndVForNewTimeSeries(id uuid.UUID) (K uint16, V uint32)

func (*Brain) GetReadAndWriteLimiter

func (b *Brain) GetReadAndWriteLimiter() (int64, int64)

func (*Brain) RegisterEventHandler

func (b *Brain) RegisterEventHandler(tp types.EventType, handler types.EventHandler)

type Distance

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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