line

package
v1.0.0 Latest Latest
Warning

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

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

README

Rk Processor Plugin

The rk processor plugin replaces an event routing key with a new one, depending on a current value.

Configuration

[[processors]]
  # "mapping" is a "new key -> old keys" map
  # event routing key will be replaced with a new value 
  # if current key matches one in a list
  [processors.rk.mapping]
    "events.topic.0" = [ "/http", "input.queue" ]
    "events.topic.1" = [ "/push" ]

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Rk

type Rk struct {
	*core.BaseProcessor `mapstructure:"-"`
	Mapping             map[string][]string `mapstructure:"mapping"`
	// contains filtered or unexported fields
}

func (*Rk) Close

func (p *Rk) Close() error

func (*Rk) Init

func (p *Rk) Init() error

func (*Rk) Run

func (p *Rk) Run()

Jump to

Keyboard shortcuts

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