config

package
v5.0.0-ga-06 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	C = new(Config)
)

Functions

func GetOutboundIP

func GetOutboundIP() net.IP

Get preferred outbound ip of this machine

func MustLoad

func MustLoad(fpaths ...string)

Types

type Alerting

type Alerting struct {
	NotifyScriptPath  string
	NotifyConcurrency int
	RedisPub          RedisPub
}

type Config

type Config struct {
	RunMode     string
	ClusterName string
	EngineDelay int64
	Log         logx.Config
	HTTP        httpx.Config
	BasicAuth   gin.Accounts
	Heartbeat   naming.HeartbeatConfig
	Alerting    Alerting
	NoData      NoData
	Redis       storage.RedisConfig
	Gorm        storage.Gorm
	MySQL       storage.MySQL
	Postgres    storage.Postgres
	WriterOpt   writer.GlobalOpt
	Writers     []writer.Options
	Reader      reader.Options
	Ibex        Ibex
}

func (*Config) IsDebugMode

func (c *Config) IsDebugMode() bool

type Ibex

type Ibex struct {
	Address       string
	BasicAuthUser string
	BasicAuthPass string
	Timeout       int64
}

type NoData

type NoData struct {
	Metric   string
	Interval int64
}

type RedisPub

type RedisPub struct {
	Enable        bool
	ChannelPrefix string
	ChannelKey    string
}

Jump to

Keyboard shortcuts

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