bootstrap

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT Imports: 44 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessTokenRevocationMarkerTTL added in v0.22.0

func AccessTokenRevocationMarkerTTL(accessTokenTTL time.Duration) time.Duration

AccessTokenRevocationMarkerTTL keeps markers long enough for any access token issued under the operator-configurable maximum lifetime.

func CheckSchemaVersion

func CheckSchemaVersion(store *store.Store, required int) error

func EnsureBootstrapAllowedEmails added in v0.33.0

func EnsureBootstrapAllowedEmails(store bootstrapAllowedEmailStore, emails []string) error

func EnsureOrganizationMode added in v0.1.24

func EnsureOrganizationMode(store *store.Store, mode string) error

func NewAccessTokenRevocations added in v0.22.0

func NewAccessTokenRevocations(
	cfg *config.Config,
	backend cache.Cache,
	ttlProvider func() time.Duration,
) *token.AccessTokenRevocations

NewAccessTokenRevocations binds token validation to the revocation guarantee selected at startup. The expiry-only mode intentionally has no online store.

func NewCache added in v0.1.21

func NewCache(cfg *config.Config) (cache.Cache, error)

func NewHTTPServer added in v0.1.21

func NewHTTPServer(app *App, version string) (*httpserver.Server, error)

func NewLogger added in v0.1.21

func NewLogger(cfg *config.Config, version string) (*logging.Logger, error)

func NewStore added in v0.1.21

func NewStore(cfg *config.Config, logger *logging.Logger) (*store.Store, error)

Types

type App added in v0.1.21

type App struct {
	Config        *config.Service
	Logger        *logging.Logger
	Observability *observability.Service
	QueueMonitor  *observability.QueueMonitor
	Maintenance   *maintenance.Coordinator
	Store         *store.Store
	Cache         cache.Cache
	Services      Services
}

func NewApp added in v0.1.21

func NewApp(version string) (*App, error)

func (*App) Close added in v0.1.21

func (a *App) Close() error

func (*App) StartBackgroundWorkers added in v0.1.21

func (a *App) StartBackgroundWorkers(ctx context.Context) *BackgroundWorkers

type BackgroundWorkers added in v0.22.0

type BackgroundWorkers struct {
	// contains filtered or unexported fields
}

func (*BackgroundWorkers) Errors added in v0.22.0

func (w *BackgroundWorkers) Errors() <-chan error

func (*BackgroundWorkers) Shutdown added in v0.22.0

func (w *BackgroundWorkers) Shutdown(ctx context.Context) error

type Services added in v0.1.21

type Services struct {
	Admin            *admin.Service
	Auth             *auth.Service
	Passkeys         *passkey.Service
	Session          *session.Service
	Organizations    *organization.Service
	Challenge        *challenge.Service
	Verification     *challenge.VerificationCodeService
	EmailTemplates   *email.TemplateService
	EmailWorker      *challenge.Worker
	WebhookWorker    *webhook.Worker
	OAuthProviders   oauth.OAuthProviders
	OAuthChallenges  *oauth.ChallengeService
	SecurityEvents   *securityevent.Service
	Apple            *apple.Client
	AppleNative      *apple.Client
	AppleCredentials *apple.Credentials
	Microsoft        *microsoft.Client
}

func NewServices added in v0.1.21

func NewServices(app *App) (Services, error)

Jump to

Keyboard shortcuts

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