driver

package
v0.2.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	Version string
	Hash    string
	Time    string
}

type DefaultDriver

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

func (*DefaultDriver) BuildInfo

func (r *DefaultDriver) BuildInfo() *BuildInfo

func (*DefaultDriver) Configuration

func (r *DefaultDriver) Configuration() configuration.Provider

func (*DefaultDriver) Logger

func (r *DefaultDriver) Logger() logrus.FieldLogger

func (*DefaultDriver) Registry

func (r *DefaultDriver) Registry() Registry

type Driver

type Driver interface {
	Logger() logrus.FieldLogger
	Configuration() configuration.Provider
	Registry() Registry
}

func MustNewDefaultDriver

func MustNewDefaultDriver(l logrus.FieldLogger, version, build, date string, dev bool) Driver

func NewDefaultDriver

func NewDefaultDriver(l logrus.FieldLogger, version, build, date string, dev bool) (Driver, error)

type Registry

type Registry interface {
	dbal.Driver

	Init() error

	WithConfig(c configuration.Provider) Registry
	WithLogger(l logrus.FieldLogger) Registry

	BuildVersion() string
	BuildDate() string
	BuildHash() string
	WithBuildInfo(version, hash, date string) Registry

	WithCSRFHandler(c x.CSRFHandler)
	WithCSRFTokenGenerator(cg x.CSRFToken)

	HealthHandler() *healthx.Handler
	CookieManager() sessions.Store

	x.CSRFProvider
	x.WriterProvider
	x.LoggingProvider

	continuity.ManagementProvider
	continuity.PersistenceProvider

	courier.Provider

	persistence.Provider

	errorx.ManagementProvider
	errorx.HandlerProvider
	errorx.PersistenceProvider

	identity.HandlerProvider
	identity.ValidationProvider
	identity.PoolProvider
	identity.PrivilegedPoolProvider
	identity.ManagementProvider

	schema.HandlerProvider

	password2.ValidationProvider
	password2.HashProvider

	session.HandlerProvider
	session.ManagementProvider
	session.PersistenceProvider

	settings.HandlerProvider
	settings.ErrorHandlerProvider
	settings.RequestPersistenceProvider
	settings.StrategyProvider

	login.RequestPersistenceProvider
	login.ErrorHandlerProvider
	login.HooksProvider
	login.HookExecutorProvider
	login.HandlerProvider
	login.StrategyProvider

	logout.HandlerProvider

	registration.RequestPersistenceProvider
	registration.ErrorHandlerProvider
	registration.HooksProvider
	registration.HookExecutorProvider
	registration.HandlerProvider
	registration.StrategyProvider

	verify.PersistenceProvider
	verify.ErrorHandlerProvider
	verify.SenderProvider
	verify.HandlerProvider

	x.CSRFTokenGeneratorProvider
}

func NewRegistry

func NewRegistry(c configuration.Provider) (Registry, error)

type RegistryDefault

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

func NewRegistryDefault

func NewRegistryDefault() *RegistryDefault

func (*RegistryDefault) BuildDate

func (m *RegistryDefault) BuildDate() string

func (*RegistryDefault) BuildHash

func (m *RegistryDefault) BuildHash() string

func (*RegistryDefault) BuildVersion

func (m *RegistryDefault) BuildVersion() string

func (*RegistryDefault) CSRFHandler

func (m *RegistryDefault) CSRFHandler() x.CSRFHandler

func (*RegistryDefault) CanHandle

func (m *RegistryDefault) CanHandle(dsn string) bool

func (*RegistryDefault) ContinuityManager

func (m *RegistryDefault) ContinuityManager() continuity.Manager

func (*RegistryDefault) ContinuityPersister

func (m *RegistryDefault) ContinuityPersister() continuity.Persister

func (*RegistryDefault) CookieManager

func (m *RegistryDefault) CookieManager() sessions.Store

func (*RegistryDefault) Courier

func (m *RegistryDefault) Courier() *courier.Courier

func (*RegistryDefault) CourierPersister

func (m *RegistryDefault) CourierPersister() courier.Persister

func (*RegistryDefault) GenerateCSRFToken

func (m *RegistryDefault) GenerateCSRFToken(r *http.Request) string

func (*RegistryDefault) HealthHandler

func (m *RegistryDefault) HealthHandler() *healthx.Handler

func (*RegistryDefault) HookRedirector

func (m *RegistryDefault) HookRedirector(config json.RawMessage) *hook.Redirector

func (*RegistryDefault) HookSessionDestroyer

func (m *RegistryDefault) HookSessionDestroyer() *hook.SessionDestroyer

func (*RegistryDefault) HookSessionIssuer

func (m *RegistryDefault) HookSessionIssuer() *hook.SessionIssuer

func (*RegistryDefault) HookVerifier

func (m *RegistryDefault) HookVerifier() *hook.Verifier

func (*RegistryDefault) IdentityHandler

func (m *RegistryDefault) IdentityHandler() *identity.Handler

func (*RegistryDefault) IdentityManager

func (m *RegistryDefault) IdentityManager() *identity.Manager

func (*RegistryDefault) IdentityPool

func (m *RegistryDefault) IdentityPool() identity.Pool

func (*RegistryDefault) IdentityTraitsSchemas

func (m *RegistryDefault) IdentityTraitsSchemas() schema.Schemas

func (*RegistryDefault) IdentityValidator

func (m *RegistryDefault) IdentityValidator() *identity.Validator

func (*RegistryDefault) Init

func (m *RegistryDefault) Init() error

func (*RegistryDefault) Logger

func (m *RegistryDefault) Logger() logrus.FieldLogger

func (*RegistryDefault) LoginHandler

func (m *RegistryDefault) LoginHandler() *login.Handler

func (*RegistryDefault) LoginHookExecutor

func (m *RegistryDefault) LoginHookExecutor() *login.HookExecutor

func (*RegistryDefault) LoginRequestErrorHandler

func (m *RegistryDefault) LoginRequestErrorHandler() *login.ErrorHandler

func (*RegistryDefault) LoginRequestPersister

func (m *RegistryDefault) LoginRequestPersister() login.RequestPersister

func (*RegistryDefault) LoginStrategies

func (m *RegistryDefault) LoginStrategies() login.Strategies

func (*RegistryDefault) LogoutHandler

func (m *RegistryDefault) LogoutHandler() *logout.Handler

func (*RegistryDefault) PasswordHasher

func (m *RegistryDefault) PasswordHasher() password2.Hasher

func (*RegistryDefault) PasswordValidator

func (m *RegistryDefault) PasswordValidator() password2.Validator

func (*RegistryDefault) Persister

func (m *RegistryDefault) Persister() persistence.Persister

func (*RegistryDefault) Ping

func (m *RegistryDefault) Ping() error

func (*RegistryDefault) PostLoginHooks

func (m *RegistryDefault) PostLoginHooks(credentialsType identity.CredentialsType) (b []login.PostHookExecutor)

func (*RegistryDefault) PostRegistrationPostPersistHooks

func (m *RegistryDefault) PostRegistrationPostPersistHooks(credentialsType identity.CredentialsType) (b []registration.PostHookPostPersistExecutor)

func (*RegistryDefault) PostRegistrationPrePersistHooks

func (m *RegistryDefault) PostRegistrationPrePersistHooks(credentialsType identity.CredentialsType) (b []registration.PostHookPrePersistExecutor)

func (*RegistryDefault) PostSettingsPostPersistHooks

func (m *RegistryDefault) PostSettingsPostPersistHooks(settingsType string) (b []settings.PostHookPostPersistExecutor)

func (*RegistryDefault) PostSettingsPrePersistHooks

func (m *RegistryDefault) PostSettingsPrePersistHooks(settingsType string) (b []settings.PostHookPrePersistExecutor)

func (*RegistryDefault) PreLoginHooks

func (m *RegistryDefault) PreLoginHooks() (b []login.PreHookExecutor)

func (*RegistryDefault) PreRegistrationHooks

func (m *RegistryDefault) PreRegistrationHooks() (b []registration.PreHookExecutor)

func (*RegistryDefault) PrivilegedIdentityPool

func (m *RegistryDefault) PrivilegedIdentityPool() identity.PrivilegedPool

func (*RegistryDefault) RegistrationErrorHandler

func (m *RegistryDefault) RegistrationErrorHandler() *registration.ErrorHandler

func (*RegistryDefault) RegistrationExecutor

func (m *RegistryDefault) RegistrationExecutor() *registration.HookExecutor

func (*RegistryDefault) RegistrationHandler

func (m *RegistryDefault) RegistrationHandler() *registration.Handler

func (*RegistryDefault) RegistrationHookExecutor

func (m *RegistryDefault) RegistrationHookExecutor() *registration.HookExecutor

func (*RegistryDefault) RegistrationRequestErrorHandler

func (m *RegistryDefault) RegistrationRequestErrorHandler() *registration.ErrorHandler

func (*RegistryDefault) RegistrationRequestPersister

func (m *RegistryDefault) RegistrationRequestPersister() registration.RequestPersister

func (*RegistryDefault) RegistrationStrategies

func (m *RegistryDefault) RegistrationStrategies() registration.Strategies

func (*RegistryDefault) SchemaHandler

func (m *RegistryDefault) SchemaHandler() *schema.Handler

func (*RegistryDefault) SelfServiceErrorHandler

func (m *RegistryDefault) SelfServiceErrorHandler() *errorx.Handler

func (*RegistryDefault) SelfServiceErrorManager

func (m *RegistryDefault) SelfServiceErrorManager() *errorx.Manager

func (*RegistryDefault) SelfServiceErrorPersister

func (m *RegistryDefault) SelfServiceErrorPersister() errorx.Persister

func (*RegistryDefault) SessionHandler

func (m *RegistryDefault) SessionHandler() *session.Handler

func (*RegistryDefault) SessionManager

func (m *RegistryDefault) SessionManager() session.Manager

func (*RegistryDefault) SessionPersister

func (m *RegistryDefault) SessionPersister() session.Persister

func (*RegistryDefault) SettingsHandler

func (m *RegistryDefault) SettingsHandler() *settings.Handler

func (*RegistryDefault) SettingsHookExecutor

func (m *RegistryDefault) SettingsHookExecutor() *settings.HookExecutor

func (*RegistryDefault) SettingsRequestErrorHandler

func (m *RegistryDefault) SettingsRequestErrorHandler() *settings.ErrorHandler

func (*RegistryDefault) SettingsRequestPersister

func (m *RegistryDefault) SettingsRequestPersister() settings.RequestPersister

func (*RegistryDefault) SettingsStrategies

func (m *RegistryDefault) SettingsStrategies() settings.Strategies

func (*RegistryDefault) Tracer

func (m *RegistryDefault) Tracer() *tracing.Tracer

func (*RegistryDefault) VerificationHandler

func (m *RegistryDefault) VerificationHandler() *verify.Handler

func (*RegistryDefault) VerificationManager

func (m *RegistryDefault) VerificationManager() *identity.Manager

func (*RegistryDefault) VerificationPersister

func (m *RegistryDefault) VerificationPersister() verify.Persister

func (*RegistryDefault) VerificationRequestErrorHandler

func (m *RegistryDefault) VerificationRequestErrorHandler() *verify.ErrorHandler

func (*RegistryDefault) VerificationSender

func (m *RegistryDefault) VerificationSender() *verify.Sender

func (*RegistryDefault) WithBuildInfo

func (m *RegistryDefault) WithBuildInfo(version, hash, date string) Registry

func (*RegistryDefault) WithCSRFHandler

func (m *RegistryDefault) WithCSRFHandler(c x.CSRFHandler)

func (*RegistryDefault) WithCSRFTokenGenerator

func (m *RegistryDefault) WithCSRFTokenGenerator(cg x.CSRFToken)

func (*RegistryDefault) WithConfig

func (*RegistryDefault) WithHooks

func (m *RegistryDefault) WithHooks(hooks map[string]func(configuration.SelfServiceHook) interface{})

func (*RegistryDefault) WithLogger

func (m *RegistryDefault) WithLogger(l logrus.FieldLogger) Registry

func (*RegistryDefault) Writer

func (m *RegistryDefault) Writer() herodot.Writer

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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