test

package
v0.0.0-...-9741fed Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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 GenerateTag

func GenerateTag() ident.Tag

GenerateTag generates a new tag

func NewMockSeriesIters

func NewMockSeriesIters(ctrl *gomock.Controller, tags ident.Tag) encoding.SeriesIterators

NewMockSeriesIters generates a new mock series iters

func NewSlowStorage

func NewSlowStorage(storage storage.Storage, delay time.Duration) storage.Storage

NewSlowStorage creates a new slow storage

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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