coredogcontroller

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: MIT Imports: 13 Imported by: 0

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"`
}

type CorefileService

type CorefileService struct {
}

func (*CorefileService) Sub

func (s *CorefileService) Sub(ctx context.Context, r *pb.Corefile) (*pb.Corefile, error)

Jump to

Keyboard shortcuts

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