settings

package
v0.0.0-...-1746241 Latest Latest
Warning

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

Go to latest
Published: May 11, 2026 License: MIT Imports: 5 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Settings Service

Responsibility

App settings storage/reads, validation, admin APIs and settings-related test flows.

Structure

  • service.go
  • config.go
  • forms/
  • apis/
  • queries/
  • migrations/
  • runtime.go

Dependencies

  • core.App
  • services/base (shared migrations registration helpers)

Public flows

  • Upsert settings.
  • Validate settings (email/filesystem tests).

Migration notes

Domain migrations live in services/settings/migrations/ and are registered via services/settings/migrations.Register.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Descriptor = servicebase.Descriptor{
	Name:    "settings",
	Purpose: "Wraps settings reads and settings-related admin forms.",
	Dependencies: []string{
		"core.App",
		"services/base/forms",
	},
	Operations: []string{
		"RedactClone",
		"NewUpsertForm",
		"SubmitUpsert",
		"NewTestS3Form",
		"TestS3",
		"NewTestEmailForm",
		"TestEmail",
	},
}

Functions

This section is empty.

Types

type Config

type Config struct {
	Enabled bool
}

func DefaultConfig

func DefaultConfig() Config

type Service

type Service struct {
	servicebase.Service
}

func New

func New(app core.App) *Service

func (*Service) NewTestEmailForm

func (s *Service) NewTestEmailForm() *settingsforms.TestEmailSend

func (*Service) NewTestS3Form

func (s *Service) NewTestS3Form() *settingsforms.TestS3Filesystem

func (*Service) NewUpsertForm

func (s *Service) NewUpsertForm() *settingsforms.SettingsUpsert

func (*Service) RedactClone

func (s *Service) RedactClone() (*settingsmodels.Settings, error)

func (*Service) SubmitUpsert

func (s *Service) SubmitUpsert(
	form *settingsforms.SettingsUpsert,
	interceptors ...baseforms.InterceptorFunc[*settingsmodels.Settings],
) error

func (*Service) TestEmail

func (s *Service) TestEmail(form *settingsforms.TestEmailSend) error

func (*Service) TestS3

func (s *Service) TestS3(form *settingsforms.TestS3Filesystem) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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