mirror of
https://github.com/hanzoai/traces.git
synced 2026-10-30 18:20:41 +00:00
* Add filtering support to Generic Forwarding * Update CHANGELOG.md * Update forwarder_test.go * Update distributor component documentation * Revert Makefile change * Update docs/sources/tempo/configuration/_index.md Co-authored-by: Kim Nylander <[email protected]> * Update docs/sources/tempo/operations/generic_forwarding.md Co-authored-by: Kim Nylander <[email protected]> * Update CHANGELOG.md --------- Co-authored-by: Kim Nylander <[email protected]>
20 lines
569 B
Go
20 lines
569 B
Go
package participle
|
|
|
|
import (
|
|
"github.com/alecthomas/participle/v2/lexer"
|
|
)
|
|
|
|
// Capture can be implemented by fields in order to transform captured tokens into field values.
|
|
type Capture interface {
|
|
Capture(values []string) error
|
|
}
|
|
|
|
// The Parseable interface can be implemented by any element in the grammar to provide custom parsing.
|
|
type Parseable interface {
|
|
// Parse into the receiver.
|
|
//
|
|
// Should return NextMatch if no tokens matched and parsing should continue.
|
|
// Nil should be returned if parsing was successful.
|
|
Parse(lex *lexer.PeekingLexer) error
|
|
}
|