Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Timeseries ¶
func Timeseries(w http.ResponseWriter, r *http.Request, rgs ResponseGates)
Timeseries merges the provided Responses into a single Timeseries DataSet and writes it to the provided responsewriter
Types ¶
type ResponseGate ¶
type ResponseGate struct {
http.ResponseWriter
Request *http.Request
Response *http.Response
Resources *request.Resources
// contains filtered or unexported fields
}
ResponseGate is a Request/ResponseWriter Pair that must be handled in its entirety before its respective response pool can be merged.
func NewResponseGate ¶
func NewResponseGate(w http.ResponseWriter, r *http.Request, rsc *request.Resources) *ResponseGate
NewResponseGate provides a new ResponseGate object
func (*ResponseGate) Body ¶
func (rg *ResponseGate) Body() []byte
Body returns the stored body for merging
func (*ResponseGate) Header ¶
func (rg *ResponseGate) Header() http.Header
Header returns the ResponseGate's Header map
func (*ResponseGate) Write ¶
func (rg *ResponseGate) Write(b []byte) (int, error)
Write is not used with a ResponseGate
func (*ResponseGate) WriteHeader ¶
func (rg *ResponseGate) WriteHeader(_ int)
WriteHeader is not used with a ResponseGate
type ResponseGates ¶
type ResponseGates []*ResponseGate
ResponseGates represents a slice of type *ResponseGate
Click to show internal directories.
Click to hide internal directories.