apibundle

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIBundle

type APIBundle[TTx any] struct {
	Archetype                *baseservice.Archetype
	Client                   *river.Client[TTx]
	DB                       riverdriver.Executor
	Driver                   riverdriver.Driver[TTx]
	Extensions               func(ctx context.Context) (map[string]bool, error)
	JobListHideArgsByDefault bool
	Logger                   *slog.Logger
}

APIBundle is a bundle of common types needed for many API endpoints.

type APIExtensionsProviderSetter added in v0.13.0

type APIExtensionsProviderSetter interface {
	SetExtensionsProvider(provider func(context.Context) (map[string]bool, error))
}

APIExtensionsProviderSetter is an interface to allow setting the extensions provider for the feature flag API.

Source Files

  • api_bundle.go

Jump to

Keyboard shortcuts

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