Versions in this module Expand all Collapse all v0 v0.6.0 Jun 17, 2026 v0.5.0 Jun 16, 2026 v0.4.1 Jun 4, 2026 Changes in this version + type BlueGreenManager struct + func NewBlueGreenManager(initialColor string, bluePort, greenPort int) *BlueGreenManager + func (bgm *BlueGreenManager) GetStatus() BlueGreenStatus + func (bgm *BlueGreenManager) RegisterHandlers(mux *http.ServeMux) + func (bgm *BlueGreenManager) Switch(ctx context.Context, req SwitchRequest) (*SwitchResponse, error) + type BlueGreenStatus struct + Blue DeploymentColor + CanSwitch bool + CurrentActive string + Green DeploymentColor + SwitchMessage string + type DeploymentColor struct + Active bool + Color string + EdgeCount uint64 + Healthy bool + LastChecked time.Time + NodeCount uint64 + Port int + Version string + type HealthChecker struct + func (hc *HealthChecker) Check(port int) bool + func (hc *HealthChecker) FetchVersion(baseURL string) (string, error) + type SwitchRequest struct + DrainTime time.Duration + TargetColor string + Timeout time.Duration + type SwitchResponse struct + Message string + NewColor string + PreviousColor string + Success bool + SwitchedAt time.Time