config

package
v0.0.0-...-16cdc5c Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthClientID

func GetAuthClientID() int

func GetAuthRedirectURI

func GetAuthRedirectURI() string

func GetAuthSSOURL

func GetAuthSSOURL() string

func GetAuthSecret

func GetAuthSecret() string

func GetDatabaseDebug

func GetDatabaseDebug() bool

func GetDatabaseHost

func GetDatabaseHost() string

func GetDatabaseMigrate

func GetDatabaseMigrate() bool

func GetDatabaseName

func GetDatabaseName() string

func GetDatabasePassword

func GetDatabasePassword() string

func GetDatabasePort

func GetDatabasePort() int

func GetDatabaseUser

func GetDatabaseUser() string

func GetIcinga2APIAddress

func GetIcinga2APIAddress() string

func GetIcinga2APIPassword

func GetIcinga2APIPassword() string

func GetIcinga2APIUser

func GetIcinga2APIUser() string

func GetIcinga2NotificationTypes

func GetIcinga2NotificationTypes() []string

func GetSource

func GetSource() string

func GetSuperUser

func GetSuperUser() string

Types

type HagridConfig

type HagridConfig struct {
	DBHost     string `json:"db_host"`
	DBName     string `json:"db_name"`
	DBPort     int    `json:"db_port"`
	DBUser     string `json:"db_user"`
	DBPassword string `json:"db_password"`
	DBDebug    bool   `json:"db_debug"`
	DBMigrate  bool   `json:"db_migrate"`

	AuthSSOURL      string `json:"auth_sso_url"`
	AuthClientID    int    `json:"auth_client_id"`
	AuthSecret      string `json:"auth_secret"`
	AuthRedirectURI string `json:"auth_redirect_uri"`

	Icinga2APIAddress        string   `json:"icinga2_api_address"`
	Icinga2APIUser           string   `json:"icinga2_api_user"`
	Icinga2APIPassword       string   `json:"icinga2_api_password"`
	Icinga2NotificationTypes []string `json:"icinga2_notification_types"`

	SuperUser string `json:"superuser"`

	Source string `json:"source"`
}

Jump to

Keyboard shortcuts

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