config

package
Version: v0.0.0-...-b94c5f0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package config contains configuration for various Gophers methods.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Default contain default shared configuration.
	Default = &Config{
		HTTPAddr: "127.0.0.1:10311",
	}

	// Flags contains command-line flags for Default.
	Flags *flag.FlagSet
)

Functions

This section is empty.

Types

type Config

type Config struct {
	// Disable requests and responses coloring.
	NoColors bool

	// Disable requests and responses recorders.
	NoRecorders bool

	// Log to stderr full requests and responses.
	Verbose bool

	// Maximum amount of time a gophers/net.Dial will wait for a connect to complete.
	DialTimeout time.Duration

	// Disable usage of IPv6.
	DisableIPv6 bool

	// HTTP listen address for Prometheus, etc.
	HTTPAddr string
}

Config defines configuration for various Gophers methods.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL