Documentation
¶
Index ¶
- func BuildUseCases(p *TOTPPlugin) *usecases.UseCases
- func MigrationSet(provider string) migrations.MigrationSet
- func Routes(p *TOTPPlugin) []models.Route
- type API
- type TOTPHookID
- type TOTPPlugin
- func (p *TOTPPlugin) Close() error
- func (p *TOTPPlugin) Config() any
- func (p *TOTPPlugin) DependsOn() []string
- func (p *TOTPPlugin) Hooks() []models.Hook
- func (p *TOTPPlugin) Init(ctx *models.PluginContext) error
- func (p *TOTPPlugin) Metadata() models.PluginMetadata
- func (p *TOTPPlugin) Migrations(provider string) []migrations.Migration
- func (p *TOTPPlugin) Routes() []models.Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildUseCases ¶
func BuildUseCases(p *TOTPPlugin) *usecases.UseCases
func MigrationSet ¶
func MigrationSet(provider string) migrations.MigrationSet
MigrationSet returns the TOTP plugin migrations as a migration set compatible with the shared migrator.
func Routes ¶
func Routes(p *TOTPPlugin) []models.Route
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
func BuildAPI ¶
func BuildAPI(plugin *TOTPPlugin) *API
type TOTPHookID ¶
type TOTPHookID string
const (
HookIDTOTPIntercept TOTPHookID = "totp.intercept"
)
func (TOTPHookID) String ¶
func (id TOTPHookID) String() string
type TOTPPlugin ¶
type TOTPPlugin struct {
Api *API
// contains filtered or unexported fields
}
func New ¶
func New(config types.TOTPPluginConfig) *TOTPPlugin
func (*TOTPPlugin) Close ¶
func (p *TOTPPlugin) Close() error
func (*TOTPPlugin) Config ¶
func (p *TOTPPlugin) Config() any
func (*TOTPPlugin) DependsOn ¶
func (p *TOTPPlugin) DependsOn() []string
func (*TOTPPlugin) Hooks ¶
func (p *TOTPPlugin) Hooks() []models.Hook
func (*TOTPPlugin) Init ¶
func (p *TOTPPlugin) Init(ctx *models.PluginContext) error
func (*TOTPPlugin) Metadata ¶
func (p *TOTPPlugin) Metadata() models.PluginMetadata
func (*TOTPPlugin) Migrations ¶
func (p *TOTPPlugin) Migrations(provider string) []migrations.Migration
func (*TOTPPlugin) Routes ¶
func (p *TOTPPlugin) Routes() []models.Route
Click to show internal directories.
Click to hide internal directories.