Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Description ¶
Description appends standard feature descriptions to an output description based on various features of the output.
func MetadataFields ¶
func MetadataFields() docs.FieldSpecs
MetadataFields returns a docs spec for the fields within a metadata config struct.
Types ¶
type Metadata ¶
type Metadata struct {
ExcludePrefixes []string `json:"exclude_prefixes" yaml:"exclude_prefixes"`
}
Metadata describes actions to be performed on message metadata before being sent to an output destination.
func NewMetadata ¶
func NewMetadata() Metadata
NewMetadata returns a Metadata configuration struct with default values.
func (Metadata) Filter ¶
func (m Metadata) Filter() (*MetadataFilter, error)
Filter attempts to construct a metadata filter.
type MetadataFilter ¶
type MetadataFilter struct {
// contains filtered or unexported fields
}
MetadataFilter provides a way to filter metadata keys based on a Metadata config.
Click to show internal directories.
Click to hide internal directories.