destination

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitConsole

func InitConsole()

InitConsole - init console for logrus.

Types

type ElasticSettings

type ElasticSettings struct {
	URL               string  `yaml:"url"`
	Host              string  `yaml:"host"`
	User              string  `yaml:"user"`
	Password          string  `yaml:"password"`
	Level             *string `yaml:"level"`
	FlushInterval     *int64  `yaml:"pushTime"`
	IndexName         *string `yaml:"indexName"`
	IndexSuffixFormat *string `yaml:"indexSuffixFormat"`
}

ElasticSettings - settings for elastic.

func (*ElasticSettings) Init

func (settings *ElasticSettings) Init()

Init - init settings.

type FileSettings

type FileSettings struct {
	Filename  string `yaml:"filename"`
	DaysStore int    `yaml:"daysStore"`
	Level     string `yaml:"level"`
}

FileSettings - settings for file.

func (*FileSettings) Init

func (settings *FileSettings) Init()

Init - init settings.

Jump to

Keyboard shortcuts

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