Versions in this module Expand all Collapse all v0 v0.0.1 May 24, 2016 Changes in this version + const DefaultConfigPath + const DefaultConfigPrefix + const DefaultDSN + const DefaultDomain + const DefaultHostname + const DefaultImageTag + const DefaultNumCont + const DefaultPort + const DefaultProject + const DefaultRedisHost + const DefaultRedisKeyLastDeploy + const DefaultRedisKeyQueue + const DefaultRedisPollInt + const DefaultRedisPort + const DefaultServerName + const DefaultTempPath + const InvalidAuthorization + const InvalidBody + const InvalidDeployCannotQueue + const InvalidDeployEnv + const InvalidDeployImage + const InvalidEnvAuthorization + const InvalidJSONAttribute + const InvalidJSONText + const InvalidMediaType + const InvalidMethod + const TCPReadTimeout + const TCPWriteTimeout + func NewDeployService(o *Options, s *db.DBConnect, r *redis.Client, d chan bool, l *logger.Logger, ...) *deployService + func NewRedisClient(hostname string, port int, password string, database int) (*redis.Client, error) + func PrintUsageAndExit() + func PrintVersionAndExit() + type DeployRequest struct + DeployID string + EnvTag string + Environment string + EtcdEndpoint string + ImageName string + ImageTag string + Machine string + MetaMount string + NumCont int + Registry string + Swarm bool + func NewDeployRequest(deployID string, imageName string, imageTag string, environment string, ...) *DeployRequest + func (r *DeployRequest) String() string + type Middleware struct + func (m *Middleware) ServeHTTP(w http.ResponseWriter, r *http.Request) + type Options struct + ConfigPath string + ConfigPrefix string + DSN string + Debug bool + Domain string + Environments map[string]map[string]string + GitRepo string + GitRoot string + Hostname string + Port int + ProfPort int + Project string + RedisDatabase int + RedisHostname string + RedisKeyLastDeploy string + RedisKeyQueue string + RedisPassword string + RedisPollInt int + RedisPort int + ServerName string + TempPath string + func (o *Options) FillConfig(v *viper.Viper) + func (o *Options) SetConfigDefaults(v *viper.Viper) + func (o *Options) String() string + type Server struct + func New(o *Options, l *logger.Logger) *Server + func (s *Server) LogRequest(r *http.Request) + func (s *Server) Shutdown() + func (s *Server) Start() error + func (s *Server) StartProfiler() + type Status struct + RequestBytes int64 + RequestCount int64 + RouteStats map[string]map[string]int64 + Start time.Time + func NewStatus(options ...func(*Status)) *Status + func (s *Status) IncrRequestStats(rb int64) + func (s *Status) IncrRouteStats(path string, rb int64) + func (s *Status) String() string