systemsettings

package
v1.0.17 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repo

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

func New

func New(q *artel_q.Queries) *Repo

func (*Repo) CompleteSetup

func (r *Repo) CompleteSetup(ctx context.Context) error

func (*Repo) Get

func (r *Repo) Get(ctx context.Context) (domain.SystemSettings, error)

func (*Repo) GetForUpdate

func (r *Repo) GetForUpdate(ctx context.Context) (domain.SystemSettings, error)

func (*Repo) SetSetupToken

func (r *Repo) SetSetupToken(ctx context.Context, tokenHash string, issuedAt time.Time) error

func (*Repo) UpdateAuthMethods

func (r *Repo) UpdateAuthMethods(ctx context.Context, passwordEnabled, telegramEnabled bool) error

func (*Repo) UpdateRegistrationMode

func (r *Repo) UpdateRegistrationMode(ctx context.Context, mode domain.RegistrationMode) error

func (*Repo) WithTx

func (r *Repo) WithTx(tx *sql.Tx) repository.SystemSettingsRepo

Jump to

Keyboard shortcuts

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