journal

package
v0.40.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	FormatAsJson bool                `river:"format_as_json,attr,optional"`
	MaxAge       time.Duration       `river:"max_age,attr,optional"`
	Path         string              `river:"path,attr,optional"`
	RelabelRules flow_relabel.Rules  `river:"relabel_rules,attr,optional"`
	Matches      string              `river:"matches,attr,optional"`
	Receivers    []loki.LogsReceiver `river:"forward_to,attr"`
	Labels       map[string]string   `river:"labels,attr,optional"`
}

Arguments are the arguments for the component.

func (*Arguments) SetToDefault added in v0.35.0

func (r *Arguments) SetToDefault()

SetToDefault implements river.Defaulter.

type Component

type Component struct {
}

Component represents reading from a journal

func New

func New(o component.Options, args Arguments) (*Component, error)

New creates a new component.

func (*Component) Run

func (c *Component) Run(ctx context.Context) error

Run starts the component.

func (*Component) Update

func (c *Component) Update(args component.Arguments) error

Update updates the fields of the component.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL