app

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StoreTypeBolt : boltdb store type
	StoreTypeBolt = "bolt"
	// StoreTypeEtcd : etcd store type
	StoreTypeEtcd = "etcd"
)

Variables

This section is empty.

Functions

func GetLogger

func GetLogger(config Configuration) log.Logger

GetLogger : create application logger

Types

type Configuration

type Configuration = struct {
	GrafanaConfig  grafanaConfig
	StorageConfig  StorageConfig
	LogLevel       string
	LogJSON        bool
	TelegramAdmins []int
	TelegramToken  string
	TemplatePath   string
	Template       *template.Template
}

Configuration : main project configuration

func LoadConfig

func LoadConfig() (Configuration, error)

LoadConfig : load application config

type StorageConfig added in v1.0.0

type StorageConfig struct {
	StoreType         string
	StoreKeyPrefix    string
	BoltdbStoreConfig boltdbStoreConfig
	EtcdStoreConfig   etcdStoreConfig
}

StorageConfig : storage configuration

Jump to

Keyboard shortcuts

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