self

package
v1.5.5 Latest Latest
Warning

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

Go to latest
Published: May 18, 2020 License: Apache-2.0 Imports: 23 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	DefaultSendTime        = 3
	DefaultSelfLogRepoName = "logkit_self_log"
	DebugPattern           = `^\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} \[DEBUG\]`
	ValidFilePattern       = "valid_file_pattern"
)

Variables

This section is empty.

Functions

func GetParserConfig

func GetParserConfig() conf.MapConf

func GetReaderConfig

func GetReaderConfig() conf.MapConf

func GetSenderConfig

func GetSenderConfig() conf.MapConf

func SetReaderConfig

func SetReaderConfig(readConf conf.MapConf, logpath, filePattern, metapath, from string) conf.MapConf

func SetSenderConfig

func SetSenderConfig(sendConf conf.MapConf, pandora Pandora) conf.MapConf

Types

type LogRunner

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

func NewLogRunner

func NewLogRunner(rdConf, psConf, sdConf conf.MapConf, envTag string) (*LogRunner, error)

func NewLogRunnerWithService

func NewLogRunnerWithService(rdConf, psConf, sdConf conf.MapConf,
	meta *reader.Meta, rd reader.Reader, ps parser.Parser, sd sender.Sender, envTag string) *LogRunner

func (*LogRunner) GetParserConfig

func (lr *LogRunner) GetParserConfig() conf.MapConf

func (*LogRunner) GetReaderConfig

func (lr *LogRunner) GetReaderConfig() conf.MapConf

func (*LogRunner) GetSenderConfig

func (lr *LogRunner) GetSenderConfig() conf.MapConf

func (*LogRunner) GetTransformerConfig

func (lr *LogRunner) GetTransformerConfig() conf.MapConf

func (*LogRunner) Name

func (lr *LogRunner) Name() string

func (*LogRunner) Run

func (lr *LogRunner) Run()

func (*LogRunner) Stop

func (lr *LogRunner) Stop() error

func (*LogRunner) TokenRefresh

func (lr *LogRunner) TokenRefresh(token AuthTokens) error

Jump to

Keyboard shortcuts

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