serde

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	FromBytes(bytes []byte) (creator.Message, error)
}

type Encoder

type Encoder interface {
	Bytes(m creator.Message) ([]byte, error)
}

type KafqaParser

type KafqaParser struct {
}

func (KafqaParser) Bytes

func (kafqaParser KafqaParser) Bytes(m creator.Message) ([]byte, error)

Bytes Serializes the message via gob encoder

func (KafqaParser) FromBytes

func (kafqaParser KafqaParser) FromBytes(data []byte) (creator.Message, error)

FromBytes DeSerializes the bytes data to a message via gob decoder

type Parser

type Parser interface {
	Encoder
	Decoder
}

func New

func New(cfg config.ProtoParser) Parser

type ProtoParser

type ProtoParser struct {
	// contains filtered or unexported fields
}

func (ProtoParser) Bytes

func (protoParser ProtoParser) Bytes(m creator.Message) ([]byte, error)

func (ProtoParser) FromBytes

func (protoParser ProtoParser) FromBytes(bytes []byte) (creator.Message, error)

Jump to

Keyboard shortcuts

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