config

package
v0.0.0-...-e00298a Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: Apache-2.0 Imports: 7 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 {
	Port        int                 `yaml:"port"`
	Persistence Persistence         `yaml:"persistence"`
	Output      output.Config       `yaml:"output"`
	Collections []collection.Config `yaml:"collections,flow"`
}

Config contains all configuration for the logger

func Get

func Get() (config *Config, err error)

Get the config

type Persistence

type Persistence struct {
	Enabled bool  `yaml:"enabled"`
	Redis   Redis `yaml:"redis"`
}

Persistence -

type Redis

type Redis struct {
	Endpoint string `yaml:"endpoint"`
	Password string `yaml:"password"`
	DB       int    `yaml:"db"`
	IdleConn int    `yaml:"idle_conn"`
	MaxConn  int    `yaml:"max_conn"`
}

Redis - redis config

Jump to

Keyboard shortcuts

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