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
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
Click to show internal directories.
Click to hide internal directories.