fx

package
v2.4.1 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2025 License: MIT Imports: 13 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

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	AccessExpire  time.Duration
	RefreshExpire time.Duration
	AccessSecret  string
}

type AuthHolder

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

func NewAuthHolder

func NewAuthHolder(accessExpire time.Duration, refreshExpire time.Duration, accessSecret string) *AuthHolder

func (*AuthHolder) Get

func (h *AuthHolder) Get() *AuthConfig

func (*AuthHolder) Reload

func (h *AuthHolder) Reload(accessExpire time.Duration, refreshExpire time.Duration, accessSecret string)

type CacheHolder

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

func NewCacheHolder

func NewCacheHolder(rdb redis.UniversalClient, accessTokenTTL time.Duration) *CacheHolder

func (*CacheHolder) Get

func (h *CacheHolder) Get() *cache2.Cache

func (*CacheHolder) Reload

func (h *CacheHolder) Reload(rdb redis.UniversalClient, accessTokenTTL time.Duration)

type ConfigLimiter

type ConfigLimiter struct {
	MaxAttempts int
	TTL         time.Duration
}

type LDAPHolder

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

func NewLDAPHolder

func NewLDAPHolder(enabled bool, cfg map[string]ldap.Config) *LDAPHolder

func (*LDAPHolder) Get

func (h *LDAPHolder) Get() *ldap.Auth

func (*LDAPHolder) Reload

func (h *LDAPHolder) Reload(enabled bool, cfg map[string]ldap.Config)

type LimiterHolder

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

func NewLimiterHolder

func NewLimiterHolder(cfg ConfigLimiter) *LimiterHolder

func (*LimiterHolder) Get

func (h *LimiterHolder) Get() *ConfigLimiter

func (*LimiterHolder) Reload

func (h *LimiterHolder) Reload(cfg ConfigLimiter)

type OIDCHolder

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

func NewOIDCHolder

func NewOIDCHolder(ctx context.Context, cfg oidc.Config) (*OIDCHolder, error)

func (*OIDCHolder) Get

func (h *OIDCHolder) Get() *oidc.Auth

func (*OIDCHolder) Reload

func (h *OIDCHolder) Reload(ctx context.Context, cfg oidc.Config) error

type SAMLHolder

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

func NewSAMLHolder

func NewSAMLHolder(ctx context.Context, cfg saml.Config) (*SAMLHolder, error)

func (*SAMLHolder) Get

func (h *SAMLHolder) Get() *saml.Auth

func (*SAMLHolder) Reload

func (h *SAMLHolder) Reload(ctx context.Context, cfg saml.Config) error

Jump to

Keyboard shortcuts

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