conf

package
v5.0.0-release+incompa... Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2018 License: LGPL-3.0 Imports: 0 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
}

type Conf

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

type DBConf

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

type DiscoverConf

type DiscoverConf struct {
	Type          string
	EtcdAddr      []string
	EtcdUser      string
	EtcdPass      string
	ClusterMode   bool
	InstanceIP    string
	HomePath      string
	DockerLogPort int
	WebPort       int
	NodeIDFile    string
}

type DockerLogServerConf

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

type EntryConf

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

type EventLogServerConf

type EventLogServerConf struct {
	BindIP           string
	BindPort         int
	CacheMessageSize int
}

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
}

type KubernetsConf

type KubernetsConf struct {
	Master string
}

type LogConf

type LogConf struct {
	LogLevel   string
	LogOutType string
	LogPath    string
}

type MonitorMessageServerConf

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

type NewMonitorMessageServerConf

type NewMonitorMessageServerConf struct {
	ListenerHost string
	ListenerPort int
}

type PubSubConf

type PubSubConf struct {
	PubBindIP   string
	PubBindPort int
	ClusterMode bool
}

type WebHookConf

type WebHookConf struct {
	ConsoleURL   string
	ConsoleToken string
}

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
}

Jump to

Keyboard shortcuts

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