config

package
v0.0.0-...-04f4181 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Domain config Telegram config GmailAPI config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartInit

func StartInit()

StartInit domain and alert from Config.json.example

Types

type AdminPanelCredentials

type AdminPanelCredentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type DBCredentialsSetting

type DBCredentialsSetting struct {
	Name     string `json:"name"`
	Password string `json:"password"`
}

type DiscordAlertSetting

type DiscordAlertSetting struct {
	WebHook     string `json:"WebHook"`
	Enabled     bool   `json:"enabled"`
	LengthAlert string `json:"length_alert"`
}

type Domain

type Domain struct {
	Name             string `json:"name"`
	IPV4             string `json:"ipv4"`
	NonExistingIPV4  string `json:"non_existing_ipv4"`
	IPV6             string `json:"ipv6"`
	NonExistingIPV6  string `json:"non_existing_ipv6"`
	AcmeTxtChallenge string `json:"acme_txt_challenge"`
}

type EmailAlertSetting

type EmailAlertSetting struct {
	To      string `json:"to"`
	Enabled bool   `json:"enabled"`
}

type HttpsConfig

type HttpsConfig struct {
	CertFile string `json:"cert_file"`
	KeyFile  string `json:"key_file"`
}

type InitStruct

type InitStruct struct {
	TelegramBot      TelegramSetting
	AdminCredentials AdminPanelCredentials
	DomainConfig     Domain
	EmailAlert       EmailAlertSetting
	HttpsCertPath    HttpsConfig
	DiscordAlert     DiscordAlertSetting
	DBCredentials    DBCredentialsSetting
}
var Settings InitStruct

type TelegramSetting

type TelegramSetting struct {
	Token       string `json:"token"`
	ChatID      int64  `json:"chat_id"`
	LengthAlert string `json:"length_alert"`
	Enabled     bool   `json:"enabled"`
}

Jump to

Keyboard shortcuts

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