config

package
v0.0.0-...-f44ad72 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmManager

type AlarmManager struct {
	Host string
	Port int
}

type Config

type Config struct {
	RabbitmqConfig RabbitmqConfig
	RedisServer    RedisServer
	MailServer     MailServer
	NotifyConfig   NotifyConfig
	AlarmManager   AlarmManager
}

func ReadConfig

func ReadConfig() (Config, error)

type MailServer

type MailServer struct {
	MailFrom     string
	MailDomain   string
	SMTPHost     string
	SMTPPort     int
	SMTPName     string
	SMTPPassword string
	Destination  string
}

type NotifyConfig

type NotifyConfig struct {
	NotifyStatusChange    bool
	NotifyOffline         bool
	SendEmailNotification bool
	SendQueueNotification bool
}

type RabbitmqConfig

type RabbitmqConfig struct {
	User      string
	Password  string
	Host      string
	Port      int
	QueueName string
}

type RedisServer

type RedisServer struct {
	IP       string
	Port     int
	Password string
	Database int
}

Jump to

Keyboard shortcuts

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