core

package
v0.0.0-...-9c01824 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2022 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]Master `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 Logger

type Logger struct {
	*logrus.Logger
}

func GetLogger

func GetLogger() *Logger

type Master

type Master struct {
	MasterName string `yaml:"master_name"`
	LocalPort  int    `yaml:"local_port"`
}

Jump to

Keyboard shortcuts

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