internal

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package internal is every implementation of the site module. Nothing outside modules/site can import it, which is the compiler enforcing idea 3.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct{}

Service is the tenant's site settings. It has no fields: everything it needs arrives with the transaction it is given.

func NewService

func NewService() *Service

NewService returns the two operations. module.go constructs it.

func (*Service) Save

Save writes the settings and says so, unless nothing changed. See contracts.Service.

func (*Service) Settings

func (s *Service) Settings(ctx context.Context, tx db.Tx[db.Tenant]) (*contracts.SiteSettings, error)

Settings is what this tenant has configured, or the defaults. See contracts.Service.

Jump to

Keyboard shortcuts

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