chLogger

package
v0.0.0-...-8fbde1e Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChLoger

type ChLoger struct {
	//logPath string
	Options *Config

	Errors  *mutexErrors
	ChInLog chan [4]string //Приемник строк

	GoodBy chan bool
	// contains filtered or unexported fields
}

func NewChLoger

func NewChLoger(cfg *Config) *ChLoger

func (*ChLoger) GetCores

func (c *ChLoger) GetCores() (cores int)

func (*ChLoger) GetCountPackage

func (c *ChLoger) GetCountPackage() (cnt int)

func (*ChLoger) RunMinion

func (p *ChLoger) RunMinion()

func (*ChLoger) SignalStoper

func (p *ChLoger) SignalStoper(prepareExit <-chan bool)

func (*ChLoger) Stop

func (p *ChLoger) Stop()

type Config

type Config struct {
	IntervalMs     int            // интервал обновления
	ConsolFilterFn map[string]int // map[funcName]mode
	ConsolFilterUn map[string]int // map[unitName]mode
	Mode           int
	Dir            string // Папка для сохранений
	Broadcast      chan<- []byte
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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