viper

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command added in v1.1.0

type Command struct {
	Shell string   `mapstructure:"shell"`
	Env   []string `mapstructure:"env"`
	Exec  string   `mapstructure:"exec"`
	Path  string   `mapstructure:"path"`
}

type Config

type Config struct {
	Watchers []Watcher `mapstructure:"watchers"`
}

type Kill

type Kill struct {
	Signal  string         `mapstructure:"signal"`
	Timeout *time.Duration `mapstructure:"timeout"`
}

type RateLimit

type RateLimit struct {
	Strategy config.RateLimitStrategy `mapstructure:"strategy"`
	Wait     *time.Duration           `mapstructure:"wait"`
}

type Watch

type Watch struct {
	Method   config.WatchMethod `mapstructure:"method"`
	Interval *time.Duration     `mapstructure:"interval"`
	Files    []WatchFile        `mapstructure:"files"`
	Filters  []WatchFilter      `mapstructure:"filters"`
}

type WatchFile

type WatchFile struct {
	Path      string `mapstructure:"path"`
	Recursive *bool  `mapstructure:"recursive"`
}

type WatchFilter

type WatchFilter struct {
	On      config.WatchFilterScope `mapstructure:"on"`
	Include *bool                   `mapstructure:"include"`
	Type    config.WatchFilterType  `mapstructure:"type"`
	List    []string                `mapstructure:"list"`
}

type Watcher

type Watcher struct {
	Name      string    `mapstructure:"name"`
	Watch     Watch     `mapstructure:"watch"`
	RateLimit RateLimit `mapstructure:"rateLimit"`
	Kill      Kill      `mapstructure:"kill"`
	Command   Command   `mapstructure:"cmd"`
}

Jump to

Keyboard shortcuts

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