core

package
v0.0.0-...-b38d570 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LogLevel       string        `yaml:"log_level"`
	RequestTimeout int           `yaml:"requests_timeout_in_seconds"`
	SentinelList   []string      `yaml:"sentinel_list"`
	DbList         map[string]Db `yaml:"db_list"`
	GraylogHost    string        `yaml:"graylog.host"`
	GraylogPort    string        `yaml:"graylog.port"`
}

func GetConfig

func GetConfig() *Config

func NewConfig

func NewConfig(configPath string) (*Config, error)

type Db

type Db struct {
	DbName    string `yaml:"dbname"`
	LocalPort int    `yaml:"local_port"`
}

type Logger

type Logger struct {
	*logrus.Logger
}

func GetLogger

func GetLogger() *Logger

Jump to

Keyboard shortcuts

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