squid

package
v0.0.0-...-c3221c4 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConfig

type ClientConfig struct {
	TLSCA              string `toml:"tls_ca"`
	TLSCert            string `toml:"tls_cert"`
	TLSKey             string `toml:"tls_key"`
	InsecureSkipVerify bool   `toml:"insecure_skip_verify"`

	// Deprecated in 1.7; use TLS variables above
	SSLCA   string `toml:"ssl_ca"`
	SSLCert string `toml:"ssl_cert"`
	SSLKey  string `toml:"ssl_key"`
}

ClientConfig represents the standard client TLS config.

func (*ClientConfig) TLSConfig

func (c *ClientConfig) TLSConfig() (*tls.Config, error)

TLSConfig returns a tls.Config, may be nil without error if TLS is not configured.

type Duration

type Duration struct {
	Duration time.Duration
}

Decoupling reliance on internals of telegraf Duration just wraps time.Duration

type Squid

type Squid struct {
	Url             string
	ResponseTimeout Duration
	ClientConfig
	// contains filtered or unexported fields
}

func NewSquid

func NewSquid() *Squid

return an initialized Squid

func (*Squid) Description

func (o *Squid) Description() string

func (*Squid) Gather

func (s *Squid) Gather(acc telegraf.Accumulator) error

Gather metrics

func (*Squid) SampleConfig

func (s *Squid) SampleConfig() string

Jump to

Keyboard shortcuts

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