package
0.44.1
Repository: https://github.com/documize/community.git
Documentation: pkg.go.dev

# Functions

CheckDomain makes sure there is an organisation with the correct domain.
ConfigSet writes a configuration JSON element to the config table.
ConfigString fetches a configuration JSON element from the config table.
GetPersister reurns a Persister which contains a Context which is based on the incoming request.
GetRequestSubdomain extracts subdomain from referring URL.
GetSubdomainFromHost extracts the subdomain from the requesting URL.
NewContext simply returns a blank Context type.
SetContext simply calls the Set method on the passed context, using the empty context stored in rc as an extra parameter.
SetupPersister prepares context for database activity.
UserConfigGetJSON fetches a configuration JSON element from the userconfig table for a given orgid/userid combination.
UserConfigSetJSON writes a configuration JSON element to the userconfig table for the current user.

# Variables

Db is the central connection to the database, used by all database requests.

# Structs

Context holds the context in which the client is dealing with Documize.
Persister stores the Context of the client along with a baseManager instance.
SearchManager type provides the datastructure for the queues of activity to be serialized through a single background goroutine.