Documentation ¶
Index ¶
- func BasicAuthentication(r *http.Request) (string, string, error)
- func HTTPPostWithFormData(api, resource, username, password, clientVersion, appOS, osVersion string) string
- func JSONToStruct(j string, v interface{}) error
- func SendJSONResponse(w http.ResponseWriter, v interface{})
- func XMLToStruct(x string, v interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BasicAuthentication ¶
BasicAuthentication extracts credentials from an HTTP Authorization header
func HTTPPostWithFormData ¶
func HTTPPostWithFormData(api, resource, username, password, clientVersion, appOS, osVersion string) string
HTTPPostWithFormData sends an HTTP POST request with form data
func JSONToStruct ¶
JSONToStruct unmarshals JSON to interface
func SendJSONResponse ¶
func SendJSONResponse(w http.ResponseWriter, v interface{})
SendJSONResponse sends an HTTP response with JSON content
func XMLToStruct ¶
XMLToStruct unmarshals XML to interface
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.