configs

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2019 License: Apache-2.0 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 {
	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