codec

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

codec package implements various codecs to be used with the publisher to encode and decode messages.

codec package implements various codecs to be used with the publisher to encode and decode messages.

codec package implements various codecs to be used with the publisher to encode and decode messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JsonCodec

type JsonCodec struct {
}

func NewJsonCodec

func NewJsonCodec() *JsonCodec

func (*JsonCodec) Decode

func (c *JsonCodec) Decode(buf []byte, msg proto.Message) error

func (*JsonCodec) Encode

func (c *JsonCodec) Encode(buf []byte, msg proto.Message) ([]byte, error)

type PbCodec added in v0.4.3

type PbCodec struct {
}

func NewPbCodec added in v0.4.3

func NewPbCodec() *PbCodec

func (*PbCodec) Decode added in v0.4.3

func (c *PbCodec) Decode(buf []byte, msg proto.Message) error

func (*PbCodec) Encode added in v0.4.3

func (c *PbCodec) Encode(buf []byte, msg proto.Message) ([]byte, error)

type ProtoJsonCodec added in v0.4.3

type ProtoJsonCodec struct {
}

func NewProtoJsonCodec added in v0.4.3

func NewProtoJsonCodec() *ProtoJsonCodec

func (*ProtoJsonCodec) Decode added in v0.4.3

func (c *ProtoJsonCodec) Decode(buf []byte, msg proto.Message) error

func (*ProtoJsonCodec) Encode added in v0.4.3

func (c *ProtoJsonCodec) Encode(buf []byte, msg proto.Message) ([]byte, error)

Jump to

Keyboard shortcuts

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