settingsmodel

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SettingsModel

type SettingsModel struct {
	DB *domain.DB
	// contains filtered or unexported fields
}

SettingsModel represents the model for settings

func (*SettingsModel) Get

func (m *SettingsModel) Get() (domain.Settings, error)

Get returns the value for a specific key

func (*SettingsModel) PrepareStatements

func (m *SettingsModel) PrepareStatements()

PrepareStatements prepares the statements

func (*SettingsModel) Set

func (m *SettingsModel) Set(settings domain.Settings) error

Set sets the registration open column in settings row

func (*SettingsModel) SetRegistrationOpen

func (m *SettingsModel) SetRegistrationOpen(open bool) error

SetRegistrationOpen sets the registration open column in settings row

Jump to

Keyboard shortcuts

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