url

package
v1.94.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

Builder encapsulates the building of urls in a central place, with knowledge of the url structures and base host names.

func NewBuilder

func NewBuilder(websiteURL, downloadServiceURL, datasetAPIURL, codeListAPIURL, importAPIURL, apiRouterPublicURL *url.URL) *Builder

NewBuilder returns a new instance of url.Builder

func (Builder) BuildWebsiteDatasetVersionURL

func (builder Builder) BuildWebsiteDatasetVersionURL(datasetID, edition, version string) string

BuildWebsiteDatasetVersionURL returns the website URL for a specific dataset version

func (*Builder) GetAPIRouterPublicURL added in v1.94.0

func (builder *Builder) GetAPIRouterPublicURL() *url.URL

func (*Builder) GetCodeListAPIURL added in v1.67.0

func (builder *Builder) GetCodeListAPIURL() *url.URL

func (*Builder) GetDatasetAPIURL added in v1.67.0

func (builder *Builder) GetDatasetAPIURL() *url.URL

func (*Builder) GetDownloadServiceURL added in v1.67.0

func (builder *Builder) GetDownloadServiceURL() *url.URL

func (*Builder) GetImportAPIURL added in v1.67.0

func (builder *Builder) GetImportAPIURL() *url.URL

func (*Builder) GetWebsiteURL added in v1.67.0

func (builder *Builder) GetWebsiteURL() *url.URL

Jump to

Keyboard shortcuts

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