url

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEndpointGenerator

func NewEndpointGenerator(schema, domain string, port int) (func(string) (string, error), error)

NewEndpointGenerator creates a function to generate URLs for a given schema and domain. It returns an error if schema or domain is empty. The returned function generates URLs based on a keyID. Accepts schema, the URL scheme (e.g., "http" or "https"), and domain, the domain to construct URLs for. Returns a function that builds URLs using the keyID or an error if parameters are invalid.

Types

This section is empty.

Jump to

Keyboard shortcuts

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