Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateRouter ¶
CreateRouter creates a new mux.Router and sets up all endpoints defined in the SensorThings api
func LowerCaseURI ¶
LowerCaseURI is a middleware function that lower cases the url path
func PostProcessHandler ¶
PostProcessHandler runs after all the other handlers and can be used to modify the response. In this case modify links (due to proxy running) or handle CORS functionality Basically we catch all the response using httptest.NewRecorder (headers + body), modify and write to response. Is this a right approach?
Types ¶
type GostServer ¶
type GostServer struct {
// contains filtered or unexported fields
}
GostServer is the type that contains all of the relevant information to set up the GOST HTTP Server
Click to show internal directories.
Click to hide internal directories.