Documentation ¶
Index ¶
- Constants
- Variables
- type Catalog
- func (c *Catalog) Dump(path string) error
- func (c *Catalog) Insert(r *Record) error
- func (c *Catalog) Metric(originName, sourceName, metricName string) (*Metric, error)
- func (c *Catalog) Origin(originName string) (*Origin, error)
- func (c *Catalog) Restore(path string) error
- func (c *Catalog) Source(originName, sourceName string) (*Source, error)
- type FilterChain
- type Metric
- type Origin
- type Record
- type Searcher
- type Source
Constants ¶
View Source
const ( // ActionDiscard represents the discard rule action keyword. ActionDiscard = "discard" // ActionRewrite represents the rewrite rule action keyword. ActionRewrite = "rewrite" // ActionSieve represents the sieve rule action keyword. ActionSieve = "sieve" // TargetAny represents the global target matching keyword. TargetAny = "any" // TargetOrigin represents the origin target matching keyword. TargetOrigin = "origin" // TargetSource represents the source target matching keyword. TargetSource = "source" // TargetMetric represents the metric target matching keyword. TargetMetric = "metric" )
Variables ¶
View Source
var ( // ErrEmptyOrigin represents an empty catalog origin error. ErrEmptyOrigin = errors.New("empty origin") // ErrEmptySource represents an empty catalog source error. ErrEmptySource = errors.New("empty source") // ErrEmptyMetric represents an empty catalog metric error. ErrEmptyMetric = errors.New("empty metric") // ErrUnknownOrigin represents an unknown catalog origin error. ErrUnknownOrigin = errors.New("unknown origin") // ErrUnknownSource represents an unknown catalog source error. ErrUnknownSource = errors.New("unknown source") // ErrUnknownMetric represents an unknown catalog metric error. ErrUnknownMetric = errors.New("unknown metric") )
Functions ¶
This section is empty.
Types ¶
type Catalog ¶
Catalog represents a catalog instance.
func (*Catalog) Metric ¶
Metric returns an existing metric from the catalog or an error if the metric doesn't exist.
func (*Catalog) Origin ¶
Origin returns an existing origin from the catalog or an error if the origin doesn't exist.
type FilterChain ¶
type FilterChain struct { Input chan *Record Output chan *Record Messages chan string // contains filtered or unexported fields }
FilterChain represents a catalog filtering chain instance.
func NewFilterChain ¶
func NewFilterChain(rules *storage.ProviderFilters) *FilterChain
NewFilterChain creates a new catalog filtering chain instance.
type Metric ¶
type Metric struct { Name string Attributes *maputil.Map // contains filtered or unexported fields }
Metric represents a catalog metric instance.
type Origin ¶
type Origin struct { Name string Sources map[string]*Source // contains filtered or unexported fields }
Origin represents a catalog origin instance.
type Searcher ¶
Searcher represents a catalog searcher instance.
func (*Searcher) Unregister ¶
Unregister unregisters a catalog from the catalog searcher.
Click to show internal directories.
Click to hide internal directories.