fx

package
v2.4.8 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2025 License: MIT Imports: 13 Imported by: 0

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