Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SearchURL is the url to search for metric ids SearchURL = "/search" // SearchHTTPMethod is the HTTP method used with this resource. SearchHTTPMethod = http.MethodPost )
View Source
const ( // HeaderKey is the key which headers will be added to in the request context. HeaderKey HeaderKeyType = iota // RoutePrefixV1 is the v1 prefix for all coordinator routes. RoutePrefixV1 = "/api/v1" // RoutePrefixExperimental is the experimental prefix for all coordinator routes. RoutePrefixExperimental = "/api/experimental" )
Variables ¶
This section is empty.
Functions ¶
func CloseWatcher ¶
func CloseWatcher( ctx context.Context, cancel context.CancelFunc, w http.ResponseWriter, instrumentOpts instrument.Options, )
CloseWatcher watches for CloseNotify and context timeout. It is best effort and may sometimes not close the channel relying on gc
func NewSearchHandler ¶
func NewSearchHandler(opts options.HandlerOptions) http.Handler
NewSearchHandler returns a new instance of handler
Types ¶
type HeaderKeyType ¶ added in v0.4.5
type HeaderKeyType int
HeaderKeyType is the type for the header key.
type SearchHandler ¶
type SearchHandler struct {
// contains filtered or unexported fields
}
SearchHandler represents a handler for the search endpoint
func (*SearchHandler) ServeHTTP ¶
func (h *SearchHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.