csv

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Copyright The OpenTelemetry Authors

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVParser

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

CSVParser is an operator that parses csv in an entry.

func (*CSVParser) Process

func (r *CSVParser) Process(ctx context.Context, e *entry.Entry) error

Process will parse an entry for csv.

type CSVParserConfig

type CSVParserConfig struct {
	helper.ParserConfig `yaml:",inline"`

	Header          string `json:"header" yaml:"header"`
	HeaderAttribute string `json:"header_attribute" yaml:"header_attribute"`
	FieldDelimiter  string `json:"delimiter,omitempty" yaml:"delimiter,omitempty"`
	LazyQuotes      bool   `json:"lazy_quotes,omitempty" yaml:"lazy_quotes,omitempty"`
}

CSVParserConfig is the configuration of a csv parser operator.

func NewCSVParserConfig

func NewCSVParserConfig(operatorID string) *CSVParserConfig

NewCSVParserConfig creates a new csv parser config with default values

func (CSVParserConfig) Build

Build will build a csv parser operator.

Jump to

Keyboard shortcuts

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