config

package
v0.0.0-...-37f65d7 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitializeLogger

func InitializeLogger(cfg *Config)

func PrintConfig

func PrintConfig(cfg *Config)

Types

type Config

type Config struct {
	File  string `arg:"-f,help:Path to our index file."`
	Port  int    `arg:"-p,help:Listen port. Enabled on all interfaces."`
	Debug bool   `arg:"-D,help:Enable debug logging"`
}

func ParseConfig

func ParseConfig() (*Config, error)

func (Config) Description

func (Config) Description() string

Jump to

Keyboard shortcuts

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