merge

package
v2.0.0-beta3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL