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

# Functions

Callback passes parameters to the given section callback, the returned error indicates success.
Command passes parameters to the given section id, the returned bool indicates success.
GetSectionMeta returns a list of smart sections.
List returns available types.
NewContext is a convenience function.
Refresh returns the latest data for a section.
Register makes document section type available.
Render runs that operation for the given section id, the returned bool indicates success.
WriteEmpty returns just OK to HTTP response.
WriteError write given error to HTTP response.
WriteForbidden write 403 to HTTP response.
WriteJSON writes data as JSON to HTTP response.
WriteMarshalError write JSON marshalling error to HTTP response.
WriteMessage write string to HTTP response.
WriteString writes string tp HTTP response.

# Constants

SecretReplacement is a constant used to replace secrets in data-structures when required.

# Variables

ErrNoSecrets is returned if no secret is found in the database.

# Structs

Context describes the environment the section code runs in.
TypeMeta details a "smart section" that represents a "page" in a document.

# Interfaces

Provider represents a 'page' in a document.