Documentation
¶
Index ¶
Constants ¶
View Source
const ( CorePid = "{corefile.p}" CoreUid = "{corefile.u}" CoreGid = "{corefile.g}" CoreSignal = "{corefile.s}" CoreTime = "{corefile.t}" CoreHost = "{corefile.h}" CoreExePath = "{corefile.E}" CoreExeName = "{corefile.e}" )
View Source
const ( CorefileName = "{corefile.filename}" CorefilePath = "{corefile.path}" CorefileUrl = "{corefile.url}" )
View Source
const (
Port = "8443"
)
Variables ¶
View Source
var (
DEFAULT_CFG_PATH = "/etc/config/controller.yaml"
)
Functions ¶
func ListenAndServe ¶
func ListenAndServe()
Types ¶
type Config ¶
type Config struct {
NoticeChannel []struct {
// supported: wechat,slack
Chan string `yaml:"chan"`
Webhookurl string `yaml:"webhookurl"`
} `yaml:"NoticeChannel"`
// example
// support to reference to labels and corefile's name parameters
// example
// cluster: {label.cluster}
// inner variable: {corefile.filename}
MessageTemplate string `yaml:"messageTemplate"`
// example
// example
// cluster: cluster-a
// env: sigapore
MessageLabels map[string]string `yaml:"messageLabels"`
}
Click to show internal directories.
Click to hide internal directories.