patternkey

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PatterKeys

type PatterKeys struct {
	// contains filtered or unexported fields
}

PatterKeys data processing

func PatternKeysFrom

func PatternKeysFrom(values ...string) *PatterKeys

PatternKeysFrom returns list of pattern keys

func (*PatterKeys) Prepare

func (tags *PatterKeys) Prepare(msg message.Message) []string

Prepare values by message

type PatternKey

type PatternKey struct {
	// contains filtered or unexported fields
}

PatternKey contains single j=key/value template

func PatternKeyFromTemplate

func PatternKeyFromTemplate(template string) *PatternKey

PatternKeyFromTemplate returns key with variables

func (*PatternKey) Prepare

func (key *PatternKey) Prepare(msg message.Message) string

Prepare values by message

Jump to

Keyboard shortcuts

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