setupwizard

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Overview

Package setupwizard implements the first-run setup wizard — see internal/service/interfaces.go's SetupWizardService doc comment for the flow this drives.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func New

func New(settingsRepo repository.SystemSettingsRepo, authSvc service.AuthService) *Service

func (*Service) CompleteSetup

func (s *Service) CompleteSetup(
	ctx context.Context, wizardSessionToken string, email, password, telegramIdToken string,
) (domain.Session, error)

func (*Service) CurrentStatus

func (s *Service) CurrentStatus(ctx context.Context) (domain.SystemSettings, error)

func (*Service) RegenerateSetupToken

func (s *Service) RegenerateSetupToken(ctx context.Context) (string, error)

func (*Service) SelectAuthMethods

func (s *Service) SelectAuthMethods(
	ctx context.Context, wizardSessionToken string, passwordEnabled, telegramEnabled bool,
) error

func (*Service) SelectRegistrationMode

func (s *Service) SelectRegistrationMode(
	ctx context.Context, wizardSessionToken string, mode domain.RegistrationMode,
) error

func (*Service) SubmitToken

func (s *Service) SubmitToken(ctx context.Context, token string) (string, error)

Jump to

Keyboard shortcuts

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