common

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResolveOrgFromRequest

func ResolveOrgFromRequest(c echo.Context) string

ResolveOrgFromRequest extracts organization from hostname (like spacedf.localhost) or from X-Organization header with header taking priority. Format: {org_slug}.{domain} where domain is configured in settings

func ResolveSpaceSlugFromRequest

func ResolveSpaceSlugFromRequest(c echo.Context) (string, error)

ResolveSpaceSlugFromRequest extracts space_slug from X-Space header. Returns an error if the header is missing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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