Documentation
¶
Index ¶
- func GenerateSingleSampleTagIterator(ctrl *gomock.Controller, tag ident.Tag) ident.TagIterator
- func GenerateTag() ident.Tag
- func NewMockSeriesIters(ctrl *gomock.Controller, tags ident.Tag) encoding.SeriesIterators
- func NewSlowStorage(storage storage.Storage, delay time.Duration) storage.Storage
- type SlowHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateSingleSampleTagIterator ¶
func GenerateSingleSampleTagIterator(ctrl *gomock.Controller, tag ident.Tag) ident.TagIterator
GenerateSingleSampleTagIterator generates a new tag iterator
func NewMockSeriesIters ¶
func NewMockSeriesIters(ctrl *gomock.Controller, tags ident.Tag) encoding.SeriesIterators
NewMockSeriesIters generates a new mock series iters
Types ¶
type SlowHandler ¶
type SlowHandler struct {
// contains filtered or unexported fields
}
SlowHandler slows down a request by delay
func NewSlowHandler ¶
func NewSlowHandler(handler http.Handler, delay time.Duration) *SlowHandler
NewSlowHandler creates a new slow handler
func (*SlowHandler) ServeHTTP ¶
func (h *SlowHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP implements http.handler
Click to show internal directories.
Click to hide internal directories.