pbcodec

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package pbcoded provides codecs for (de)serializing messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Json

type Json struct{}

func (Json) Decode

func (j Json) Decode(message storage.RawMessage) storage.ProtoDecodable

func (Json) Encode

func (j Json) Encode(message proto.Message) (storage.RawMessage, error)

type ProtoBuf

type ProtoBuf struct{}

func (ProtoBuf) Decode

func (p ProtoBuf) Decode(message storage.RawMessage) storage.ProtoDecodable

func (ProtoBuf) Encode

func (p ProtoBuf) Encode(message proto.Message) (storage.RawMessage, error)

Jump to

Keyboard shortcuts

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