options

package
v0.0.0-...-ee2a6b6 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version string = "v1.1.0"

Functions

This section is empty.

Types

type BotOptions

type BotOptions struct {
	Name     string          `yaml:"name"`
	Path     string          `yaml:"path"`
	Webhook  string          `yaml:"webhook"`
	Template TemplateOptions `yaml:"template"`
}

type CoreOptions

type CoreOptions struct {
	Mode    string         `yaml:"mode"`
	Listen  string         `yaml:"listen"`
	Metrics MetricsOptions `yaml:"metrics"`
	Log     LogOptions     `yaml:"log"`
}

type LogOptions

type LogOptions struct {
	Path  string `yaml:"path"`
	Level string `yaml:"level"`
}

type MetricsOptions

type MetricsOptions struct {
	Enable bool   `yaml:"enable"`
	Path   string `yaml:"path"`
}

type Options

type Options struct {
	Core CoreOptions  `yaml:"core"`
	Bots []BotOptions `yaml:"bots"`
}

func NewOptions

func NewOptions() (opts Options)

type TemplateOptions

type TemplateOptions struct {
	Alerting string `yaml:"alerting"`
	Resolved string `yaml:"resolved"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳