conf

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClusterConf

type ClusterConf struct {
	PubSub   PubSubConf
	Discover DiscoverConf
}

ClusterConf cluster conf

type Conf

type Conf struct {
	Entry            EntryConf
	EventStore       EventStoreConf
	Log              LogConf
	WebSocket        WebSocketConf
	WebHook          WebHookConf
	ClusterMode      bool // 默认 true
	Cluster          ClusterConf
	Kubernetes       KubernetsConf
	EnableDebugPprof bool
}

Conf conf

type DBConf

type DBConf struct {
	Type        string
	URL         string
	PoolSize    int
	PoolMaxSize int
	HomePath    string
}

DBConf db conf

type DiscoverConf

type DiscoverConf struct {
	Type          string
	EtcdAddr      []string
	EtcdCaFile    string
	EtcdCertFile  string
	EtcdKeyFile   string
	EtcdUser      string
	EtcdPass      string
	ClusterMode   bool
	InstanceIP    string
	HomePath      string
	DockerLogPort int
	WebPort       int
	NodeID        string
}

DiscoverConf discover conf

type DockerLogServerConf

type DockerLogServerConf struct {
	BindIP           string
	BindPort         int
	CacheMessageSize int
}

DockerLogServerConf docker log server conf

type EntryConf

type EntryConf struct {
	EventLogServer              EventLogServerConf
	DockerLogServer             DockerLogServerConf
	MonitorMessageServer        MonitorMessageServerConf
	NewMonitorMessageServerConf NewMonitorMessageServerConf
}

EntryConf entry conf

type EventLogServerConf

type EventLogServerConf struct {
	BindIP           string
	BindPort         int
	CacheMessageSize int
}

EventLogServerConf eventlog server conf

type EventStoreConf

type EventStoreConf struct {
	EventLogPersistenceLength   int64
	MessageType                 string
	GarbageMessageSaveType      string
	GarbageMessageFile          string // 默认 /var/log/envent_garbage_message.log
	PeerEventMaxLogNumber       int64  //每个event最多日志条数。
	PeerEventMaxCacheLogNumber  int    // 默认 256
	PeerDockerMaxCacheLogNumber int64  // 默认 128
	ClusterMode                 bool
	HandleMessageGoroutinues    int // 默认 2
	HandleSubMessageGoroutinues int // 默认 3
	HandleDockerLogGoroutinues  int // 默认 2
	DB                          DBConf
}

EventStoreConf event store conf

type KubernetsConf

type KubernetsConf struct {
	Master string
}

KubernetsConf kubernetes conf

type LogConf

type LogConf struct {
	LogLevel   string
	LogOutType string
	LogPath    string
}

LogConf log conf

type MonitorMessageServerConf

type MonitorMessageServerConf struct {
	SubAddress       []string
	SubSubscribe     string
	CacheMessageSize int
}

MonitorMessageServerConf monitor message server conf

type NewMonitorMessageServerConf

type NewMonitorMessageServerConf struct {
	ListenerHost string
	ListenerPort int
}

NewMonitorMessageServerConf new monitor message server conf

type PubSubConf

type PubSubConf struct {
	PubBindIP      string
	PubBindPort    int
	ClusterMode    bool
	PollingTimeout time.Duration
}

PubSubConf pub sub conf

type WebHookConf

type WebHookConf struct {
	ConsoleURL   string
	ConsoleToken string
}

WebHookConf webhook conf

type WebSocketConf

type WebSocketConf struct {
	BindIP               string
	BindPort             int
	SSLBindPort          int
	EnableCompression    bool
	ReadBufferSize       int
	WriteBufferSize      int
	MaxRestartCount      int
	TimeOut              string
	SSL                  bool
	CertFile             string
	KeyFile              string
	PrometheusMetricPath string
}

WebSocketConf websocket conf

Jump to

Keyboard shortcuts

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