jsonarray

package
v0.102.0 Latest Latest
Warning

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

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

Documentation

Overview

Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0

Copyright The OpenTelemetry Authors SPDX-License-Identifier: Apache-2.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	helper.ParserConfig `mapstructure:",squash"`
	Header              string `mapstructure:"header"`
}

Config is the configuration of a json array parser operator.

func NewConfig

func NewConfig() *Config

NewConfig creates a new json array parser config with default values

func NewConfigWithID

func NewConfigWithID(operatorID string) *Config

NewConfigWithID creates a new json array parser config with default values

func (Config) Build

Build will build a json array parser operator.

type Parser

type Parser struct {
	helper.ParserOperator
	// contains filtered or unexported fields
}

Parser is an operator that parses json array in an entry.

func (*Parser) Process

func (p *Parser) Process(ctx context.Context, e *entry.Entry) error

Process will parse an entry for json array.

Jump to

Keyboard shortcuts

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