Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Headers ¶
func NewHeaders ¶
func NewHeaders() Headers
type RawJSONOut ¶
type RawJSONOut map[string]interface{}
type Request ¶
type Request struct { Method string URL string Body string Headers Headers Params map[string]string }
func NetReqToReq ¶
NetReqToReq converts net/http request to our own internal http request format
func (Request) ValidateAuthenticationToken ¶
validateSignature validates a signature based on the authorization header
type Response ¶
func CreateError ¶
CreateError creates an error message json structure
func CreateOutput ¶
createOutput creates json output for data
func NewResponse ¶
Click to show internal directories.
Click to hide internal directories.