Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderAggregator ¶
type ProviderAggregator struct {
// contains filtered or unexported fields
}
ProviderAggregator aggregates providers.
func NewProviderAggregator ¶
func NewProviderAggregator(conf static.Providers) *ProviderAggregator
NewProviderAggregator returns an aggregate of all the providers configured in the static configuration.
func (*ProviderAggregator) AddProvider ¶
func (p *ProviderAggregator) AddProvider(provider provider.Provider) error
AddProvider adds a provider in the providers map.
type RingChannel ¶
type RingChannel struct {
// contains filtered or unexported fields
}
RingChannel implements a channel in a way that never blocks the writer. Specifically, if a value is written to a RingChannel when its buffer is full then the oldest value in the buffer is discarded to make room (just like a standard ring-buffer). Note that Go's scheduler can cause discarded values when they could be avoided, simply by scheduling the writer before the reader, so caveat emptor.
Click to show internal directories.
Click to hide internal directories.