serializers

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvroDecode

func AvroDecode(schema, data []byte) ([]byte, error)

AvroDecode takes in a path to a AVRO schema file, and binary encoded data and returns the plain JSON representation

func AvroDecodeWithSchemaFile added in v1.0.0

func AvroDecodeWithSchemaFile(schemaPath string, data []byte) ([]byte, error)

func AvroEncode

func AvroEncode(schema, data []byte) ([]byte, error)

func AvroEncodeWithSchemaFile added in v1.0.0

func AvroEncodeWithSchemaFile(schemaPath string, data []byte) ([]byte, error)

func DecodeThrift added in v1.13.0

func DecodeThrift(dirs []string, structName string, message []byte) ([]byte, error)

DecodeThrift decodes a thrift message with the given structName utilizing .thrift IDL files found in dirs

func TruncateRepoArchiveDirectory added in v1.0.0

func TruncateRepoArchiveDirectory(files map[string]string) map[string]string

TruncateRepoArchiveDirectory strips the github repo zip file's base directory from a file map

Types

This section is empty.

Jump to

Keyboard shortcuts

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