avrologencodingextension

package module
v0.116.0 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 15 Imported by: 1

README

AVRO Log encoding extension

Status
Stability development
Distributions []
Issues Open issues Closed issues
Code Owners @thmshmm

The avrolog encoding extension is used to unmarshal AVRO and insert it into the body of a log record. Marshalling is not supported.

The extension accepts a configuration option to specify the Avro schema to use to read the log record body.

Example:

extensions:
  avro_log_encoding:
    schema: |
      {
        "type" : "record",
        "namespace" : "example",
        "name" : "Datapoint",
        "fields" : [
          { "name" : "Key" , "type" : "string" },
          { "name" : "Value" , "type" : "int" }
        ]
      }

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFactory

func NewFactory() extension.Factory

Types

type Config

type Config struct {
	Schema string `mapstructure:"schema"`
}

func (*Config) Validate

func (c *Config) Validate() error

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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