app

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

func New

func New(reg *prometheus.Registry) *App

func (*App) Gatherer

func (a *App) Gatherer() prometheus.Gatherer

Exposed for testing purposes

func (*App) Run

func (a *App) Run(ctx context.Context, args ...string) error

func (*App) WithConsumeBatchMaxDelay

func (a *App) WithConsumeBatchMaxDelay(d time.Duration)

type RunError

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

RunError signals no to display the error, as it already had been logged. The exit code should still be set though

Jump to

Keyboard shortcuts

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