config

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const HttpProtocol = "http://"

Variables

This section is empty.

Functions

This section is empty.

Types

type AlarmConfig

type AlarmConfig struct {
	HttpPort      int                 `json:"http_port"`
	ProfilePort   int                 `json:"profile_port"`
	ServerAddress string              `json:"server_address"`
	Log           newlog.LogConfig    `json:"log"`
	MySQLServer   dbmodel.MySQLConfig `json:"mysql_server"`
	Mail          MailConfig          `json:"mail"`
}

func (*AlarmConfig) ParseConfig

func (ac *AlarmConfig) ParseConfig(configPath string)

type MailConfig

type MailConfig struct {
	SmtpHost string `json:"smtp_host"`
	SmtpPort int    `json:"smtp_port"`
	From     string `json:"from"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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