encoding

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMapForJSON

func ConvertMapForJSON(m map[string]interface{}) map[string]interface{}

Types

type AvroMessageEncoder added in v1.0.3

type AvroMessageEncoder struct {
	SchemaSpec string
	Binary     bool
}

func (*AvroMessageEncoder) Encode added in v1.0.3

func (ame *AvroMessageEncoder) Encode(val interface{}) ([]byte, error)

type JSONExtMessageEncoder added in v1.0.3

type JSONExtMessageEncoder struct{}

func (*JSONExtMessageEncoder) Encode added in v1.0.3

func (jme *JSONExtMessageEncoder) Encode(val interface{}) ([]byte, error)

type JSONMessageEncoder added in v1.0.3

type JSONMessageEncoder struct{}

func (*JSONMessageEncoder) Encode added in v1.0.3

func (jme *JSONMessageEncoder) Encode(val interface{}) ([]byte, error)

type MessageEncoder added in v1.0.3

type MessageEncoder interface {
	Encode(interface{}) ([]byte, error)
}

Jump to

Keyboard shortcuts

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