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.
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 ¶
func (c CSVParserConfig) Build(logger *zap.SugaredLogger) (operator.Operator, error)
Build will build a csv parser operator.