helios

package
v0.0.0-...-f6de6f3 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2015 License: MIT Imports: 11 Imported by: 0

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 Helios

type Helios struct {
	// contains filtered or unexported fields
}

func NewHelios

func NewHelios() *Helios

func (*Helios) Run

func (helios *Helios) Run(configPath string)

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

Jump to

Keyboard shortcuts

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