app

package
v0.0.0-...-91471a5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultLoggregatorConfig = LoggregatorConfig{
	MetronURL:      "localhost:3458",
	CACertPath:     "/var/vcap/jobs/metric-exporter/config/loggregator.ca_cert.crt",
	ClientCertPath: "/var/vcap/jobs/metric-exporter/config/loggregator.client_cert.crt",
	ClientKeyPath:  "/var/vcap/jobs/metric-exporter/config/loggregator.client_key.key",
}

Functions

func NewLocketConfig

func NewLocketConfig(addr, caCert, clientCert, clientKey *string) locket.ClientLocketConfig

Types

type Application

type Application struct {
	// contains filtered or unexported fields
}

Application is the main application logic

func NewApplication

func NewApplication(
	config *Config,
	processors map[sonde_events.Envelope_EventType]processors.Processor,
	senders []metrics.Sender,
) *Application

NewApplication creates a new application instance

func (*Application) Run

func (a *Application) Run(signals <-chan os.Signal, ready chan<- struct{}) error

func (*Application) Start

func (a *Application) Start(withLock bool)

func (*Application) Stop

func (a *Application) Stop()

Stop stops the application

type Config

type Config struct {
	CFClientConfig       *cfclient.Config
	CFAppUpdateFrequency time.Duration
	Whitelist            []string
	Template             string
	EnablePrometheus     bool
	PrometheusPort       int
	Loggregator          LoggregatorConfig
	locket.ClientLocketConfig
}

Config is the application configuration

type LoggregatorConfig

type LoggregatorConfig struct {
	MetronURL      string
	CACertPath     string
	ClientCertPath string
	ClientKeyPath  string
}

Jump to

Keyboard shortcuts

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