types

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OriginTypeRPC represents thee Reverse Proxy Cache origin type
	OriginTypeRPC = OriginType(iota)
	// OriginTypeRule represents the Ruler origin type
	OriginTypeRule
	// OriginTypePrometheus represents the Prometheus origin type
	OriginTypePrometheus
	// OriginTypeInfluxDB represents the InfluxDB origin type
	OriginTypeInfluxDB
	// OriginTypeIronDB represents the IRONdb origin type
	OriginTypeIronDB
	// OriginTypeClickHouse represents the ClickHouse origin type
	OriginTypeClickHouse
)

Variables

View Source
var Names = map[string]OriginType{
	"rule":              OriginTypeRule,
	"reverseproxycache": OriginTypeRPC,
	"rpc":               OriginTypeRPC,
	"prometheus":        OriginTypePrometheus,
	"influxdb":          OriginTypeInfluxDB,
	"irondb":            OriginTypeIronDB,
	"clickhouse":        OriginTypeClickHouse,
}

Names is a map of OriginTypes keyed by string name

View Source
var Values = make(map[OriginType]string)

Values is a map of OriginTypes valued by string name

Functions

func IsValidOriginType

func IsValidOriginType(t string) bool

IsValidOriginType returns true if the provided OriginType is valid for use with Trickster

Types

type OriginType

type OriginType int

OriginType enumerates the supported origin types

func (OriginType) String

func (t OriginType) String() string

Jump to

Keyboard shortcuts

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