gateway

package
v0.2.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) (*domain.Gateway, bool)

func WithGateway

func WithGateway(ctx context.Context, gw *domain.Gateway) context.Context

Types

type CreateInput

type CreateInput struct {
	Slug            string
	Domain          string
	Metadata        map[string]string
	Telemetry       *telemetry.Telemetry
	ClientTLSConfig domain.ClientTLSConfig
	SessionConfig   *domain.SessionConfig
}

type Creator

type Creator interface {
	Create(ctx context.Context, in CreateInput) (*domain.Gateway, error)
}

func NewCreator

func NewCreator(
	repo domain.Repository,
	manager *cache.TTLMapManager,
	exporterFactory appmetrics.ExporterFactory,
	logger *slog.Logger,
) Creator

type Deleter

type Deleter interface {
	Delete(ctx context.Context, id ids.GatewayID) error
}

func NewDeleter

func NewDeleter(
	repo domain.Repository,
	manager *cache.TTLMapManager,
	publisher cache.EventPublisher,
	logger *slog.Logger,
) 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
	Metadata        map[string]string
	Telemetry       *telemetry.Telemetry
	ClientTLSConfig *domain.ClientTLSConfig
	SessionConfig   *domain.SessionConfig
}

type Updater

type Updater interface {
	Update(ctx context.Context, in UpdateInput) (*domain.Gateway, error)
}

func NewUpdater

func NewUpdater(
	repo domain.Repository,
	manager *cache.TTLMapManager,
	publisher cache.EventPublisher,
	exporterFactory appmetrics.ExporterFactory,
	logger *slog.Logger,
) Updater

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL