Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RequestTimings ¶
type Response ¶
type Response struct { Timer *RequestTimings `json:"request_timings,omitempty"` DataAge *DataAge `json:"data_age"` StatusCode int `json:"status"` Errors []error `json:"errors"` Metadata map[string]interface{} `json:"metadata"` Result []map[string]interface{} `json:"result"` }
func (*Response) TimerDuration ¶
TimerDuration uses the end & start times to work out how long a http request has taken to be processed. This informaton is helpful for assessing performance over the api
func (*Response) TimerEnd ¶
func (r *Response) TimerEnd()
TimerEnd is companiion to TimerStart, this tracks the end of the http request being processed and can then be used to work out duration.
func (*Response) TimerStart ¶
func (r *Response) TimerStart()
TimerStart is called early in the http request handler to accurately track the start time of the request. This is then used with end time to work out durations that can be checked for performance etc
Click to show internal directories.
Click to hide internal directories.