Documentation ¶
Index ¶
- func FindMissingParams(query url.Values, queryParams []string) []string
- func ProcessRequest(config *Config, w http.ResponseWriter, r *http.Request) bool
- func SendError(e Exception, w http.ResponseWriter, r *http.Request)
- type Config
- type Exception
- func InvalidParameterValue(parameter string) Exception
- func MissingParameterValue(value string) Exception
- func ProcessGetCapabilitiesRequest(config *Config, w http.ResponseWriter, r *http.Request) Exception
- func ProcessGetFeatureInfoRequest(w http.ResponseWriter, r *http.Request) Exception
- func ProcessGetTileRequest(w http.ResponseWriter, r *http.Request) Exception
- func UnknownService() Exception
- type HostAndPath
- type WMTSException
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindMissingParams ¶
FindMissingParams compares the url.Values with the given keys and checks if any are missing
func ProcessRequest ¶
ProcessRequest checks the quality of the request and if it's valid to process as a WMTS request
Types ¶
type Exception ¶
Exception interfact wraps three variables: Error Code Status Needed for WMTS error responses
func InvalidParameterValue ¶
func MissingParameterValue ¶
MissingParameterValue template
func ProcessGetCapabilitiesRequest ¶
func ProcessGetCapabilitiesRequest(config *Config, w http.ResponseWriter, r *http.Request) Exception
ProcessGetCapabilitiesRequest if a template is given this will fill it in and writes it to the response
func ProcessGetFeatureInfoRequest ¶
func ProcessGetFeatureInfoRequest(w http.ResponseWriter, r *http.Request) Exception
ProcessGetFeatureInfoRequest - Translates KVP requests to RestFUL requests
func ProcessGetTileRequest ¶
func ProcessGetTileRequest(w http.ResponseWriter, r *http.Request) Exception
ProcessGetTileRequest rewrites the KVP request as RestFUL and alters the request so it can be proxied
type HostAndPath ¶
HostAndPath is HostAndPath
type WMTSException ¶
WMTSException grouping the error message variables together
func (WMTSException) Error ¶
func (w WMTSException) Error() string
Error returns available ErrorMessage
func (WMTSException) Status ¶
func (w WMTSException) Status() int
Status returns available StatusCode