Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetUrlPrefix ¶
func GetUrlPrefix(r *http.Request, logger logrus.FieldLogger) string
GetUrlPrefix elaborates the current URL prefix in order to point to this server.
e.g. if the request is received from the server running as http://localhost:12345/ but it detects to be under a reverse proxy, that is adjusted.
func MapGetFirstValue ¶
func ParamsToMap ¶
func ParamsToMap(params httprouter.Params) (map[string]string, error)
ParamsToMap converts httprouter.Params to a simple map[string]string to have a nice and simple interface, without the implications of a library
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.