refactor: use one struct for context handling and cancellation

This commit is contained in:
Stavros
2026-05-07 22:31:51 +03:00
parent cc357f35ef
commit 592c221b2d
7 changed files with 327 additions and 210 deletions
+8 -1
View File
@@ -7,7 +7,14 @@ import (
"github.com/tinyauthapp/tinyauth/internal/utils/tlog"
)
type LabelProvider interface {
type LabelProvider int
const (
LabelProviderDocker LabelProvider = iota
LabelProviderKubernetes
)
type LabelProviderImpl interface {
GetLabels(appDomain string) (*model.App, error)
}