config

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 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 ForwardTo

type ForwardTo struct {
	URL               *string
	Host              *string
	Port              *uint16
	Type              string
	TimeoutDuration   *time.Duration `json:"-"`
	Timeout           *string
	DefaultSource     *string
	DefaultAuthToken  *string
	BufferSize        *uint32
	Name              *string
	DrainingThreads   *uint32
	MetricCreationURL *string
	MaxDrainSize      *uint32
	Filename          *string
	SourceDimensions  *string
	FormatVersion     *uint32
	DimensionsOrder   []string
}

ForwardTo configures where we forward datapoints to

func (*ForwardTo) String

func (forwardTo *ForwardTo) String() string

type ListenFrom

type ListenFrom struct {
	Type                       string
	ListenAddr                 *string
	MetricDeconstructor        *string
	MetricDeconstructorOptions *string
	Timeout                    *string
	Name                       *string
	ListenPath                 *string
	JSONEngine                 *string
	Encrypted                  *bool
	TimeoutDuration            *time.Duration `json:"-"`
	ServerAcceptDeadline       *time.Duration `json:"-"`
}

ListenFrom configures how we listen for datapoints to forward

func (*ListenFrom) String

func (listenFrom *ListenFrom) String() string

type ProxyConfig

type ProxyConfig struct {
	ForwardTo          []*ForwardTo
	ListenFrom         []*ListenFrom
	StatsDelay         *string
	StatsDelayDuration *time.Duration `json:"-"`
	NumProcs           *int
	EnableStatusPage   *bool
	LocalDebugServer   *string
	PidFilename        *string
	LogDir             *string
	LogMaxSize         *int
	LogMaxBackups      *int
	LogFormat          *string
}

ProxyConfig is the full config as presented inside the proxy config file

func Load

func Load(configFile string) (*ProxyConfig, error)

Load loads proxy configuration from a filename that is in an xdg configuration location

Jump to

Keyboard shortcuts

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