conf

package
v5.2.0-beta1+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2020 License: LGPL-3.0 Imports: 0 Imported by: 60

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
	Cluster     ClusterConf
	Kubernetes  KubernetsConf
}

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
	NodeIDFile    string
}

DiscoverConf discover conf

type DockerLogServerConf

type DockerLogServerConf struct {
	BindIP           string
	BindPort         int
	CacheMessageSize int
	Mode             string
}

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
	PeerEventMaxLogNumber       int64 //每个event最多日志条数。
	PeerEventMaxCacheLogNumber  int
	PeerDockerMaxCacheLogNumber int64
	ClusterMode                 bool
	HandleMessageCoreNumber     int
	HandleSubMessageCoreNumber  int
	HandleDockerLogCoreNumber   int
	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
}

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