Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CachedSources ¶
func NewCachedSources ¶
func NewCachedSources(defaultExpration, cleanupInterval time.Duration) *CachedSources
func (*CachedSources) GetSource ¶
func (cs *CachedSources) GetSource(reference string) (evalexpr.Source, error)
func (*CachedSources) SetValue ¶
func (cs *CachedSources) SetValue(reference string, value interface{}) error
type MemorySource ¶
type MemorySource struct {
Value interface{}
}
func NewMemorySource ¶
func NewMemorySource(value interface{}) *MemorySource
func (*MemorySource) GetValue ¶
func (ms *MemorySource) GetValue() (interface{}, error)
type MemorySources ¶
func NewMemorySources ¶
func NewMemorySources() *MemorySources
func (*MemorySources) GetSource ¶
func (ms *MemorySources) GetSource(reference string) (evalexpr.Source, error)
func (*MemorySources) SetSource ¶
func (ms *MemorySources) SetSource(reference string, source evalexpr.Source) error
func (*MemorySources) SetValue ¶
func (ms *MemorySources) SetValue(reference string, value interface{}) error
type PrometheusSource ¶
func NewPrometheusSource ¶
func NewPrometheusSource(address, query string) *PrometheusSource
func (*PrometheusSource) GetValue ¶
func (ps *PrometheusSource) GetValue() (interface{}, error)
Click to show internal directories.
Click to hide internal directories.