config

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ValueTypeNone = ValueType(iota)
	ValueTypeGauge
	ValueTypeHistogram
)

Variables

This section is empty.

Functions

func WithValue

func WithValue(valueType ValueType) option

func WithValueBuckets

func WithValueBuckets(buckets []float64) option

func WithoutCalls

func WithoutCalls() option

func WithoutError

func WithoutError() option

func WithoutLatency

func WithoutLatency() option

Types

type Config

type Config interface {
	HasLatency() bool
	HasCalls() bool
	HasError() bool
	ValueType() ValueType
	ValueBuckets() []float64
}

func New

func New(opts ...option) Config

type ValueType

type ValueType uint8

Jump to

Keyboard shortcuts

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