avro

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeAvro

func DecodeAvro(schema string, event []byte) map[string]interface{}

decodeAvro decodes an Avro event using the provided schema and returns a nested map[string]interface{}.

Parameters: - schema: The Avro schema used for decoding the event (string). - event: The Avro event to be decoded ([]byte).

Returns: - nestedMap: The decoded event as a nested map[string]interface{}.

func GetSchemaIdFromPayload

func GetSchemaIdFromPayload(msg []byte) int

GetSchemaIdFromPayload returns the schema id from the payload

Types

This section is empty.

Jump to

Keyboard shortcuts

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