keys

package
v0.19.905 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	AccountCtxKey         string = "account"
	AccountIDCtxKey       string = "account_id"
	BlobServiceCtxKey     string = "blob_service"
	CfgCtxKey             string = "config"
	IsGlobalKey           string = "is_global"
	InstallWorkflowCtxKey string = "workflow"
	FlowCtxKey            string = "flow"
	IsEmployeeCtxKey      string = "is_employee"
	LoggerFieldsCtxKey    string = "logger_fields"
	LogStreamCtxKey       string = "log_stream"
	MetricsKey            string = "metrics"
	OrgCtxKey             string = "org"
	OrgIDCtxKey           string = "org_id"
	OffPaginationCtxKey   string = "offset_pagination"
	IsPublicKey           string = "is_public"
	RunnerCtxKey          string = "runner"
	RunnerIDCtxKey        string = "runner_id"
	DisableViewCtxKey     string = "disable_view"
	PatcherCtxKey         string = "patcher"
	TraceIDCtxKey         string = "trace_id"
)

All of the context keys are defined here so we can use them in different contexts.

While most every package can use the cctx helpers directly, since they do leverage models, anything in the models that needs information from the context can not rely on that package directly, otherwise a circular dependency will be created.

Variables

This section is empty.

Functions

func CreatedByIDFromContext added in v0.19.850

func CreatedByIDFromContext(ctx context.Context) string

CreatedByIDFromContext returns the account ID from context. Returns empty string if not set. This is safe to call from leaf packages that cannot import the full cctx package due to circular dependencies.

func OrgIDFromContext added in v0.19.850

func OrgIDFromContext(ctx context.Context) string

OrgIDFromContext returns the org ID from context. Returns empty string if not set. This is safe to call from leaf packages that cannot import the full cctx package due to circular dependencies.

Types

This section is empty.

Jump to

Keyboard shortcuts

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