Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CreateInput ¶
type CreateInput struct {
Slug string
Domain string
TenantID string
Metadata map[string]string
Telemetry *telemetry.Telemetry
ClientTLSConfig domain.ClientTLSConfig
SessionConfig *domain.SessionConfig
// Entitlements overrides the default free tier when the admin API sets it explicitly.
Entitlements *domain.Entitlements
// PlatformAdmin is true when the JWT has no tenant claim (may set entitlements even when TenantID is stamped from the body).
PlatformAdmin bool
}
type Creator ¶
func NewCreator ¶
func NewCreator( repo domain.Repository, manager *cache.TTLMapManager, exporterFactory appmetrics.ExporterFactory, logger *slog.Logger, signaler configsyncport.SnapshotSignaler, rateLimitEnabled bool, ) Creator
type Deleter ¶
func NewDeleter ¶
func NewDeleter( repo domain.Repository, manager *cache.TTLMapManager, publisher cache.EventPublisher, logger *slog.Logger, signaler configsyncport.SnapshotSignaler, ) Deleter
type Finder ¶
type Finder interface {
FindByID(ctx context.Context, id ids.GatewayID) (*domain.Gateway, error)
FindBySlug(ctx context.Context, slug string) (*domain.Gateway, error)
List(ctx context.Context, filter domain.ListFilter) ([]*domain.Gateway, int, error)
}
func NewFinder ¶
func NewFinder(repo domain.Repository, manager *cache.TTLMapManager, logger *slog.Logger) Finder
type UpdateInput ¶
type UpdateInput struct {
ID ids.GatewayID
Slug *string
Status *string
Domain *string
TenantID string
// PlatformAdmin is true when the JWT has no tenant claim (may set entitlements).
PlatformAdmin bool
Metadata map[string]string
Telemetry *telemetry.Telemetry
ClientTLSConfig *domain.ClientTLSConfig
SessionConfig *domain.SessionConfig
Entitlements *domain.Entitlements
}
type Updater ¶
func NewUpdater ¶
func NewUpdater( repo domain.Repository, manager *cache.TTLMapManager, publisher cache.EventPublisher, exporterFactory appmetrics.ExporterFactory, logger *slog.Logger, signaler configsyncport.SnapshotSignaler, rateLimitEnabled bool, ) Updater
Source Files
¶
Click to show internal directories.
Click to hide internal directories.