Versions in this module Expand all Collapse all v2 v2.0.23 Jun 11, 2026 v2.0.22 Jun 10, 2026 v2.0.21 Jun 10, 2026 v2.0.20 May 30, 2026 v2.0.19 May 29, 2026 v2.0.18 May 27, 2026 v2.0.17 May 21, 2026 v2.0.16 May 14, 2026 v2.0.15 May 7, 2026 v2.0.14 May 2, 2026 Changes in this version + func Setup(ctx context.Context, sc *stdlibapp.SetupContext) error + func SetupInternal(ctx context.Context, sc *stdlibapp.SetupContext) error v2.0.13 Apr 17, 2026 v2.0.11 Apr 3, 2026 v2.0.10 Apr 3, 2026 Changes in this version type SetupContext + K8sCache cache.Cache v2.0.9 Mar 25, 2026 Changes in this version + type ServerError interface + Code func() codes.Code + Error func() string + WithDetails func(details proto.Message) (ServerError, error) + func NewServerError(code codes.Code, message string) ServerError + func NewServerErrorFromStatus(status *status.Status) ServerError + func NewServerErrorf(code codes.Code, format string, a ...interface{}) ServerError v2.0.8 Mar 17, 2026 v2.0.7 Mar 2, 2026 Changes in this version + func InitDB(ctx context.Context, cfg *database.DbConfig) (*gorm.DB, error) + func InitKubernetesClient(ctx context.Context, cfg K8sConfig, scheme *runtime.Scheme) (client.WithWatch, *rest.Config, error) + type App struct + Name string + Setup func(ctx context.Context, sc *SetupContext) error + Short string + func (a *App) Command() *cobra.Command + func (a *App) Run() error + type K8sConfig struct + Burst int + KubeConfig string + Namespace string + QPS int + Timeout string + type ReadyCheckFunc func(r *http.Request) error + type SetupContext struct + BaseURL string + DB *gorm.DB + DataStore *storage.DataStore + Host string + K8sClient client.WithWatch + K8sConfig *rest.Config + Middleware func(http.Handler) http.Handler + Mux *http.ServeMux + Namespace string + Port int + Scope promutils.Scope + func (sc *SetupContext) AddReadyCheck(fn ReadyCheckFunc) + func (sc *SetupContext) AddWorker(name string, fn WorkerFunc) + type WorkerFunc func(ctx context.Context) error