publicurl

package
v0.0.0-...-15db9d3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AbsoluteURL

func AbsoluteURL(ctx context.Context, u string, params url.Values) string

AbsoluteURL builds an absolute URL from a relative path. It uses BaseHost/BaseScheme from config if available, otherwise the address the client used to reach the server, recorded in the context by the server's address middleware.

func ImageURL

func ImageURL(ctx context.Context, artID model.ArtworkID, size int) string

ImageURL generates a public URL for artwork images. It creates a signed token for the artwork ID and builds a complete public URL.

func PublicURL

func PublicURL(ctx context.Context, u string, params url.Values) string

PublicURL builds a full URL for public-facing resources. It uses ShareURL from config if available, otherwise falls back to the address the client used to reach the server, recorded in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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