common

package
v0.0.0-...-ecc5721 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Sig = make(chan os.Signal, 1)

	UserConfig           *viper.Viper
	KafkaProducer        *kafka.Producer // send agent raw data
	KafkaRawDataProducer *kafka.Producer // k8s audit log

	ConfPath string
	LocalIP  string //server本地IP
	FileDir  string = "./file/"

	ManageAddrs []string // addrlist of Management Center

	SdAddrs []string // addrlist of service discovery center
	SvrName string   // Name registered to the service discovery center
	SvrAK   string   // access key, which use for http sign
	SvrSK   string   // secret key, which use for http sign

	GRPCPort  int //grpc
	ConnLimit int

	HttpPort           int
	HttpSSLEnable      bool
	SSLKeyFile         string
	SSLCertFile        string
	SSLRawDataKeyFile  string
	SSLRawDataCertFile string
	SSLCaFile          string
	HttpAuthEnable     bool
	HttpAkSkMap        map[string]string //access key and secret key list, which used to identify whether the http request comes from a known subject

	PProfEnable bool
	PProfPort   int //pprof

	RawDataPort int
)

Functions

func CheckIPFormat

func CheckIPFormat(ip string) bool

func GetOutboundIP

func GetOutboundIP() (string, error)

func GetRandomManageAddr

func GetRandomManageAddr() string

func IsFileExist

func IsFileExist(path string) bool

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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