Documentation
¶
Index ¶
- type Builder
- func (builder Builder) BuildWebsiteDatasetVersionURL(datasetID, edition, version string) string
- func (builder *Builder) GetAPIRouterPublicURL() *url.URL
- func (builder *Builder) GetCodeListAPIURL() *url.URL
- func (builder *Builder) GetDatasetAPIURL() *url.URL
- func (builder *Builder) GetDownloadServiceURL() *url.URL
- func (builder *Builder) GetImportAPIURL() *url.URL
- func (builder *Builder) GetWebsiteURL() *url.URL
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 ¶
BuildWebsiteDatasetVersionURL returns the website URL for a specific dataset version
func (*Builder) GetAPIRouterPublicURL ¶ added in v1.94.0
func (*Builder) GetCodeListAPIURL ¶ added in v1.67.0
func (*Builder) GetDatasetAPIURL ¶ added in v1.67.0
func (*Builder) GetDownloadServiceURL ¶ added in v1.67.0
func (*Builder) GetImportAPIURL ¶ added in v1.67.0
func (*Builder) GetWebsiteURL ¶ added in v1.67.0
Click to show internal directories.
Click to hide internal directories.