package conf
type Conf struct {
Entry EntryConf
EventStore EventStoreConf
Log LogConf
WebSocket WebSocketConf
WebHook WebHookConf
Cluster ClusterConf
Kubernetes KubernetsConf
ElasticSearchURL string
ElasticSearchUsername string
ElasticSearchPassword string
ElasticEnable bool
}
type WebHookConf struct {
ConsoleURL string
ConsoleToken string
}
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
}
type LogConf struct {
LogLevel string
LogOutType string
LogPath string
}
type EntryConf struct {
EventLogServer EventLogServerConf
DockerLogServer DockerLogServerConf
MonitorMessageServer MonitorMessageServerConf
NewMonitorMessageServerConf NewMonitorMessageServerConf
}
type EventLogServerConf struct {
BindIP string
BindPort int
CacheMessageSize int
}
type DockerLogServerConf struct {
BindIP string
BindPort int
CacheMessageSize int
Mode string
}
type DiscoverConf struct {
Type string
InstanceIP string
HomePath string
DockerLogPort int
WebPort int
}
type PubSubConf struct {
PubBindIP string
PubBindPort int
}
type EventStoreConf struct {
EventLogPersistenceLength int64
MessageType string
GarbageMessageSaveType string
GarbageMessageFile string
PeerEventMaxLogNumber int64
PeerEventMaxCacheLogNumber int
PeerDockerMaxCacheLogNumber int64
HandleMessageCoreNumber int
HandleSubMessageCoreNumber int
HandleDockerLogCoreNumber int
StorageHomePath string
}
type KubernetsConf struct {
Master string
}
type ClusterConf struct {
PubSub PubSubConf
Discover DiscoverConf
}
type MonitorMessageServerConf struct {
SubAddress []string
SubSubscribe string
CacheMessageSize int
}
type NewMonitorMessageServerConf struct {
ListenerHost string
ListenerPort int
}