application

package
v0.8.10-1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: BSD-2-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RootCmd = &cobra.Command{
		Use:   "varnishmon",
		Short: "varnishmon",
		Long: `varnishmon is a utility inspired by the classic atop tool. It
periodically collects metrics from Varnish Cache / Varnish Enterprise using the
varnishstat utility, stores them in a DuckDB database, and provides a simple
built-in web interface for visualizing the timeseries data.`,
		Version:           config.Version(),
		DisableAutoGenTag: true,
		PersistentPreRun: func(cmd *cobra.Command, args []string) {

			cfg = boot(cmd.Root())
		},
		Run: func(cmd *cobra.Command, args []string) {
			NewApplication(cfg).Start()
		},
	}
)

Functions

func Main

func Main()

Types

type Application

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

func NewApplication

func NewApplication(cfg *config.Config) *Application

func (*Application) Cfg

func (app *Application) Cfg() *config.Config

func (*Application) Start

func (app *Application) Start()

Jump to

Keyboard shortcuts

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