Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildPath ¶
BuildPath constructs a full path by prepending the configured path prefix to the given path. If no prefix is configured, returns the path as-is.
Examples:
- BuildPath("/dashboard") with prefix "/pgbackweb" -> "/pgbackweb/dashboard"
- BuildPath("/dashboard") with no prefix -> "/dashboard"
- BuildPath("") with prefix "/pgbackweb" -> "/pgbackweb"
func SetPathPrefix ¶
func SetPathPrefix(prefix string)
SetPathPrefix sets the path prefix once. This should be called during application initialization with the value from the environment config.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.