config

package
v0.0.0-...-e700f86 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2017 License: Apache-2.0 Imports: 2 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 {
	UseTLS bool `flag:"tls"`

	Port       int `flag:"port"`
	NumThreads int `flag:"threads"`

	Interface string `flag:"interface"`

	Timeout        int    `flag:"timeout"`
	UserAgent      string `flag:"user-agent"`
	EnableProfiler bool   `flag:"profiler"`

	Resolvers string `flag:"resolvers"`
	Prefix    string `flag:"prefix"`

	Paths []string
}

func LoadFromContext

func LoadFromContext(c *cli.Context) *Config

Jump to

Keyboard shortcuts

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