appsettings

package
v2.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package appsettings handles settings that change the functionality of this app. These settings turn certain features or checks on or off or otherwise alter the way the app looks or works. Most of the time app settings should be "opt in".

How to add a new app setting:

  • Define a name for the setting, somthing short but descriptive, in camelcase.
  • Name should be such that the "false" state is default.
  • Add the setting to the AppSetting struct (db-appsettings.go).
  • Update the createTableAppSettings function with the new column (db-appsettings.go).
  • Update the updateTableAppSettings function with the new column (db-appsettings.go).
  • Update the insertIntialAppSettings function with the new column (db-appsettings.go).
  • Update the Update function with the new column (db-appsettings.go).
  • Update the appsettings type (types.ts).
  • Document new app setting in help files.
  • Deploy the db or update the db schema as needed.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(w http.ResponseWriter, r *http.Request)

Get looks up the app settings.

func Update

func Update(w http.ResponseWriter, r *http.Request)

Update saves changes to app settings. All settings are updated.

Types

This section is empty.

Jump to

Keyboard shortcuts

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