providers

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// RPC represents the Reverse Proxy Cache backend provider
	RPCID = Provider(iota)
	// ALB represents the Application Load Balancer backend provider
	ALBID
	// RP represents the Reverse Proxy (no caching) backend provider
	RPID
	// Rule represents the Ruler backend provider
	RuleID
	// Prometheus represents the Prometheus backend provider
	PrometheusID
	// InfluxDB represents the InfluxDB backend provider
	InfluxDBID
	// ClickHouse represents the ClickHouse backend provider
	ClickHouseID

	Backends = "backends"

	ReverseProxyShort      = "rp"
	ReverseProxy           = "reverseproxy"
	ReverseProxyCacheShort = "rpc"
	ReverseProxyCache      = "reverseproxycache"
	Proxy                  = "proxy"

	Rule = "rule"
	ALB  = "alb"

	Prometheus = "prometheus"
	ClickHouse = "clickhouse"
	InfluxDB   = "influxdb"
)

Variables

Names is a map of Providers keyed by string name

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

Values is a map of Providers valued by string name

Functions

func IsSupportedTimeSeriesMergeProvider

func IsSupportedTimeSeriesMergeProvider(name string) bool

IsSupportedTimeSeriesProvider returns true if the provided time series is supported by Trickster

func IsSupportedTimeSeriesProvider

func IsSupportedTimeSeriesProvider(name string) bool

IsSupportedTimeSeriesProvider returns true if the provided time series is supported by Trickster

func IsValidProvider

func IsValidProvider(t string) bool

IsValidProvider returns true if the provided Provider is valid for use with Trickster

func NonCacheBackends

func NonCacheBackends() sets.Set[string]

NonCacheBackends returns a set of backend Providers that do not use a cache

func NonOriginBackends

func NonOriginBackends() sets.Set[string]

NonOriginBackends returns a set of backend Providers that never proxy to an Origin URL, but instead pass requests off to other Providers that do.

Types

type Provider

type Provider int

Provider enumerates the supported backend providers

func (Provider) String

func (t Provider) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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