config

package
v0.0.0-...-f8a25d4 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	HTTPAddress string
	LogLevel    string
	LogFormat   LogFormat

	Ntfy     ntfy
	Handlers map[string]handler
}

func ReadConfig

func ReadConfig(path string) (Config, error)

type HandlerType

type HandlerType int
const (
	HandlerFlux HandlerType = iota + 1
	HandlerDiscordEmbed
	HandlerAlertmanager
)

func (HandlerType) String

func (h HandlerType) String() string

type LogFormat

type LogFormat int
const (
	LogFormatText LogFormat = iota
	LogFormatJson
)

Jump to

Keyboard shortcuts

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