config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WatcherApp = 1 << iota
	NotificationApp
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	QueueConfig             QueueConfig
	WatcherCfg              WatcherConfig
	NotifCfg                NotifConfig
	AppMode                 int
	GracefulShutdownTimeout int64
}

func GetEnvConfig

func GetEnvConfig() (Config, error)

type GenericNotifConfig

type GenericNotifConfig struct {
	Url string
}

type MattermostConfig

type MattermostConfig struct {
	Host       string
	BearerAuth string
	ChannelId  string
}

type NotifConfig

type NotifConfig struct {
	RedisQueueReadNames  []string // comma seperated
	NotificationPlatform string
	TelegramConfig       TelegramConfig
	GenericNotifConfig   GenericNotifConfig
	MattermostConfig     MattermostConfig
}

type QueueConfig

type QueueConfig struct {
	QueueType   string
	RedisConfig RedisConfig
}

type RedisConfig

type RedisConfig struct {
	RedisURL string
}

type TelegramConfig

type TelegramConfig struct {
	TelegramBotApiToken string
	TelegramChatID      int64
}

type WatcherConfig

type WatcherConfig struct {
	RedisQueueWriteName string
	EventsFilter        []string // comma seperated
}

Jump to

Keyboard shortcuts

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