Versions in this module Expand all Collapse all v0 v0.1.1 Nov 12, 2026 v0.1.0 Oct 14, 2026 Changes in this version + const ColActiveAt + const ColWarnedAt + const CounterActive + const CounterCleared + const CounterDeleted + const CounterExempt + const CounterFailed + const CounterNoChannel + const CounterWarned + const DefaultBatchSize + const DefaultInactiveAfter + const MaxBatchSize + const MinDeletionGrace + const MinInactiveAfter + const OutcomeDeleted + const OutcomeWarned + const PluginName + const PurposeAccountDeleted + const PurposeStaleAccount + var ActiveAt = sqlb.Col[*time.Time](auth.TableUser, ColActiveAt) + var WarnedAt = sqlb.Col[*time.Time](auth.TableUser, ColWarnedAt) + type AccountDeletedData struct + DeletedAt time.Time + WarnedAt time.Time + type ExemptFunc func(ctx context.Context, userID string) (bool, error) + type Option func(*Plugin) + func BatchSize(n int) Option + func DeleteAfterWarning(grace time.Duration) Option + func Exempt(fn ExemptFunc) Option + func InactiveAfter(d time.Duration) Option + func Since(t time.Time) Option + type Plugin struct + func New(opts ...Option) *Plugin + func (p *Plugin) Columns() []auth.ColumnExtension + func (p *Plugin) DataHooks() auth.DataHooks + func (p *Plugin) DecodeMessageData(purpose auth.Purpose, raw json.RawMessage) (any, error) + func (p *Plugin) Init(a *auth.Auth) error + func (p *Plugin) Maintain(ctx context.Context, o auth.MaintainOptions) (map[string]int64, error) + func (p *Plugin) Name() string + func (p *Plugin) OptionErr() error + func (p *Plugin) Run(ctx context.Context, o RunOptions) (Result, error) + func (p *Plugin) Validate(c *auth.Config) error + type Result struct + Active int64 + Cleared int64 + Deleted int64 + Exempt int64 + Failed int64 + NoChannel int64 + Warned int64 + type RunOptions struct + DryRun bool + type StaleAccountData struct + DeleteAt *time.Time + InactiveDays int + LastActive time.Time