postgres

package
v0.0.0-...-2ea5467 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstrumentedClientOther

type InstrumentedClientOther struct{}

InstrumentedClientOther instrumented postgres client

func NewInstrumentedClientOther

func NewInstrumentedClientOther() *InstrumentedClientOther

NewInstrumentedClientOther initialises a new fake postgres client

func (*InstrumentedClientOther) Delete

func (c *InstrumentedClientOther) Delete(o string) error

Delete fake delete

func (*InstrumentedClientOther) Insert

func (c *InstrumentedClientOther) Insert(o string) error

Insert fake insert

type InstrumentedClientPrometheus

type InstrumentedClientPrometheus struct {
	// contains filtered or unexported fields
}

InstrumentedClientPrometheus instrumented postgres client

func NewInstrumentedClientPrometheus

func NewInstrumentedClientPrometheus(insertRange, deleteRange string) *InstrumentedClientPrometheus

NewInstrumentedClientPrometheus initialises a new fake postgres client

func (*InstrumentedClientPrometheus) Delete

Delete fake delete

func (*InstrumentedClientPrometheus) Insert

Insert fake insert

type Metrics

type Metrics struct {
	TimerHistogram           prometheus.Histogram
	TimeSummary              prometheus.Summary
	TimerGauge               prometheus.Gauge
	RangeMinSec, RangeMaxSec int
}

Jump to

Keyboard shortcuts

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