Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fanout ¶
type Fanout []SampleAppender
Fanout is a SampleAppender that appends every sample to a list of other SampleAppenders.
func (Fanout) Append ¶
func (f Fanout) Append(s *clientmodel.Sample)
Append implements SampleAppender. It appends the provided sample to all SampleAppenders in the Fanout slice and waits for each append to complete before proceeding with the next.
type SampleAppender ¶
type SampleAppender interface {
Append(*clientmodel.Sample)
}
SampleAppender is the interface to append samples to both, local and remote storage.
Click to show internal directories.
Click to hide internal directories.