Documentation ¶
Index ¶
Constants ¶
View Source
const ( HardBlockFileName = "/etc/disabled/helios" RedisPingInterval = 1 //in seconds MySQLPingInterval = 1 //in seconds HardBlockCheckInterval = 1 //in seconds MySQLTimeout = 10 //in seconds RedisTimeout = 10 //in seconds )
View Source
const ( StatusOk = iota StatusHardblocked = iota StatusRedisMasterDown = iota StatusRedisSlaveDown = iota StatusMySQLMasterDown = iota StatusMySQLSlaveDown = iota StatusRedisAndMySQLDown = iota )
View Source
const (
AppName = "helios"
)
View Source
const (
InfluxSeriesName = "metrics"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HealthCheckController ¶
type HealthCheckController struct {
// contains filtered or unexported fields
}
func NewHealthCheckController ¶
func NewHealthCheckController(statusManager *StatusManager) *HealthCheckController
type OAuthController ¶
type OAuthController struct {
// contains filtered or unexported fields
}
func NewOAuthController ¶
func NewOAuthController( influxdbClient *client.Client, server *osin.Server, storageFactory *models.StorageFactory, redisStorage *storage.RedisStorage, serverConfig *config.ServerConfig) *OAuthController
type StatusManager ¶
type StatusManager struct {
// contains filtered or unexported fields
}
func NewStatusManager ¶
func NewStatusManager(serverConfig *config.ServerConfig, redisStorage *storage.RedisStorage, storageFactory *models.StorageFactory) *StatusManager
func (*StatusManager) AllowTraffic ¶
func (statusManager *StatusManager) AllowTraffic() bool
func (*StatusManager) Close ¶
func (statusManager *StatusManager) Close()
func (*StatusManager) GetStatus ¶
func (statusManager *StatusManager) GetStatus() int
Click to show internal directories.
Click to hide internal directories.