root

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "updo",
	Short: "A simple website monitoring tool",
	Long: `Updo is a lightweight, easy-to-use website monitoring tool that checks
website availability and response time. It provides both a terminal UI
and a simple text-based output mode.`,
	Example: `  updo monitor https://example.com
  updo --url https://example.com
  updo monitor -r 10 -t 5 https://example.com
  updo monitor --simple -c 10 https://example.com
  updo monitor --simple https://example.com
  updo monitor -a "Welcome" https://example.com
  updo --url https://example.com -H "Authorization: Bearer token123"
  updo monitor -X POST -H "Content-Type: application/json" https://api.example.com/endpoint
  updo monitor -X POST -d '{"name":"test"}' -H "Content-Type: application/json" https://api.example.com/data`,
}

Functions

func Execute

func Execute() error

func HideMonitoringFlags added in v0.3.0

func HideMonitoringFlags(cmd *cobra.Command)

Types

type Config

type Config struct {
	URL             string
	ConfigFile      string
	RefreshInterval time.Duration
	Timeout         time.Duration
	ShouldFail      bool
	FollowRedirects bool
	AcceptRedirects bool
	SkipSSL         bool
	AssertText      string
	ReceiveAlert    bool
	Simple          bool
	Count           int
	Headers         []string
	Method          string
	Body            string
	Log             string
	Only            []string
	Skip            []string
	WebhookURL      string
	WebhookHeaders  []string
	PrometheusURL   string
}
var AppConfig Config

Jump to

Keyboard shortcuts

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