config

package
v0.0.0-...-98f7181 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxWorkersEnvName = "CRAWL_MAX_WORKERS"
	BindAddrEnvName   = "CRAWL_BIND_ADDR"
)

env name constants

Variables

This section is empty.

Functions

func Validate

func Validate(cfg *Config) error

Validate validate config

Types

type Config

type Config struct {
	MaxWorkers int
	BindAddr   string
}

Config service configuration

func Parse

func Parse() *Config

Parse parse env config vars

Jump to

Keyboard shortcuts

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