codec

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Overview

Package codec is the registration center for supported codecs you can register whatever codec implementation you want

e.g. for json codec, you can register you own codec implementation based on other json library (other than encoding/json)

by default, using encoding/json for json codec and gogoproto for protobuf codec

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCodec

func GetCodec(kind arhatgopb.CodecType) types.Codec

func RegisterCodec

func RegisterCodec(kind arhatgopb.CodecType, codec types.Codec)

Types

This section is empty.

Directories

Path Synopsis
Package codecjson uses stdlib json for libext
Package codecjson uses stdlib json for libext
Package codecpb implements protobuf codec for libext
Package codecpb implements protobuf codec for libext

Jump to

Keyboard shortcuts

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