configs

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2019 License: Apache-2.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Project              string   `yaml:"project,omitempty"`
	Datasets             []string `yaml:"datasets,omitempty"`
	MaxClientConcurrency int      `yaml:"max_client_concurrency,omitempty"`
	LogLevel             string   `yaml:"log_level,omitempty"`
	DBHostname           string   `yaml:"db_hostname,omitempty"`
	DBPort               int32    `yaml:"db_port,omitempty"`
	DBReset              bool     `yaml:"db_reset,omitempty"`
	ServerPort           int32    `yaml:"server_port,omitempty"`
	WebDirectory         string   `yaml:"web_directory,omitempty"`
	CronRefresh          string   `yaml:"cron_refresh,omitempty"`
	Logger               *log.Logger
}

Config object to be loaded with configuration from YAML file

func (*Config) LoadFromFile

func (c *Config) LoadFromFile(file string) error

LoadFromFile return Config object according to a YAML file

func (*Config) PrintConfig

func (c *Config) PrintConfig()

PrintConfig print the config

Jump to

Keyboard shortcuts

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