Documentation ¶
Overview ¶
This file was generated by robots (build-countries-golang) on 2024-05-20 08:47:45.556667 -0700 PDT m=+0.001735989
Index ¶
- Variables
- func DefaultFilterParams() []string
- func FacetsFromRequest(ctx context.Context, req *http.Request, params []string) ([]*spelunker.Facet, error)
- func FeatureFromRequestURI(ctx context.Context, sp spelunker.Spelunker, req_uri *URI) ([]byte, error)
- func FiltersFromRequest(ctx context.Context, req *http.Request, params []string) ([]spelunker.Filter, error)
- func LoggerWithRequest(req *http.Request, wr io.Writer) *slog.Logger
- func PaginationOptionsFromRequest(req *go_http.Request) (pagination.Options, error)
- func ParsePageNumberFromRequest(req *go_http.Request) (int64, error)
- func ReadUserIP(req *http.Request) string
- func RecordFromRequestURI(ctx context.Context, sp spelunker.Spelunker, req_uri *URI) ([]byte, error)
- func ReplaceAll(input string, pattern string, value any) string
- func SPRFromRequestURI(ctx context.Context, sp spelunker.Spelunker, req_uri *URI) (spr.StandardPlacesResult, error)
- func URIForConcordanceNS(uri string, ns string, filters []spelunker.Filter, facets []spelunker.Facet) string
- func URIForConcordanceNSPred(uri string, ns string, pred string, filters []spelunker.Filter, ...) string
- func URIForConcordanceTriple(uri string, ns string, pred string, value any, filters []spelunker.Filter, ...) string
- func URIForId(uri string, id int64, filters []spelunker.Filter, facets []spelunker.Facet) string
- func URIForIdSimple(uri string, id int64) string
- func URIForNullIsland(uri string, filters []spelunker.Filter, facets []spelunker.Facet) string
- func URIForPlacetype(uri string, pt string, filters []spelunker.Filter, facets []spelunker.Facet) string
- func URIForRecent(uri string, d string, filters []spelunker.Filter, facets []spelunker.Facet) string
- func URIForRecentSimple(uri string, d string) string
- func URIForSearch(uri string, query string, filters []spelunker.Filter, facets []spelunker.Facet) string
- type URI
- type URIs
Constants ¶
This section is empty.
Variables ¶
View Source
var CountryCodeLookup = map[string]string{}/* 214 elements not displayed */
Functions ¶
func DefaultFilterParams ¶
func DefaultFilterParams() []string
func FacetsFromRequest ¶
func FeatureFromRequestURI ¶
func FiltersFromRequest ¶
func LoggerWithRequest ¶ added in v0.0.12
func ReadUserIP ¶ added in v0.0.12
func RecordFromRequestURI ¶
func SPRFromRequestURI ¶
func URIForConcordanceNS ¶
func URIForConcordanceNSPred ¶
func URIForConcordanceTriple ¶
func URIForIdSimple ¶
func URIForNullIsland ¶
func URIForPlacetype ¶
func URIForRecent ¶
func URIForRecentSimple ¶
func URIForSearch ¶
Types ¶
type URI ¶
func ParseURIFromPath ¶
type URIs ¶
type URIs struct { // WWW/human-readable Id string `json:"id"` IdAlt []string `json:"id_alt"` Concordances string `json:"concordances"` ConcordanceNS string `json:"concordance_ns"` ConcordanceNSPred string `json:"concordance_ns_pred"` ConcordanceTriple string `json:"concordance_triple"` Descendants string `json:"descendants"` DescendantsAlt []string `json:"descendants_alt"` Index string `json:"index"` Placetypes string `json:"placetypes"` Placetype string `json:"placetype"` NullIsland string `json:"nullisland"` Recent string `json:"recent"` RecentAlt []string `json:"recent_alt"` Search string `json:"search"` About string `json:"about"` Code string `json:"code"` HowTo string `json:"how_to"` Tiles string `json:"tiles"` OpenSearch string `json:"opensearch"` // Static assets Static string `json:"static"` // API/machine-readable ConcordanceNSFaceted string `json:"concordance_ns"` ConcordanceNSPredFaceted string `json:"concordance_ns_pred"` ConcordanceTripleFaceted string `json:"concordance_triple_faceted"` DescendantsFaceted string `json:"descendants_faceted"` FindingAid string `json:"finding_aid"` GeoJSON string `json:"geojson"` GeoJSONAlt []string `json:"geojson_alt"` GeoJSONLD string `json:"geojsonld"` GeoJSONLDAlt []string `json:"geojsonld_alt"` NullIslandFaceted string `json:"nullisland_faceted"` PlacetypeFaceted string `json:"placetype_faceted"` RecentFaceted string `json:"recent_faceted"` SearchFaceted string `json:"search_faceted"` Select string `json:"select"` SelectAlt []string `json:"select_alt"` SPR string `json:"spr"` SPRAlt []string `json:"spr_alt"` SVG string `json:"svg"` SVGAlt []string `json:"svg_alt"` RootURL string `json:"root_url"` }
func DefaultURIs ¶
func DefaultURIs() *URIs
func (*URIs) ApplyPrefix ¶
Click to show internal directories.
Click to hide internal directories.