gtscontext

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Barebones

func Barebones(ctx context.Context) bool

Barebones returns whether the "barebones" context key has been set. This can be used to indicate to the database, for example, that only a barebones model need be returned, Allowing it to skip populating sub models.

func SetBarebones

func SetBarebones(ctx context.Context) context.Context

SetBarebones sets the "barebones" context flag and returns this wrapped context. See Barebones() for further information on the "barebones" context flag..

Types

This section is empty.

Jump to

Keyboard shortcuts

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