j5codec

package
v0.0.0-...-0f19e00 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: MIT Imports: 1 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Global = codec.Global

Functions

This section is empty.

Types

type Codec

type Codec = codec.Codec

func NewCodec

func NewCodec(opts ...Option) *Codec

type CodecOption

type CodecOption = codec.CodecOption

func WithIncludeEmpty

func WithIncludeEmpty() CodecOption

WithIncludeEmpty includes empty fields in the JSON output.

func WithProtoToAny

func WithProtoToAny() CodecOption

WithProtoToAny adds a proto encoding to j5.any.v1 messages using the resolver

func WithResolver

func WithResolver(resolver MessageTypeResolver) CodecOption

WithResolver sets a custom resolver for decoding any types.

type MessageTypeResolver

type MessageTypeResolver = codec.MessageTypeResolver

type Option

type Option = codec.CodecOption

Jump to

Keyboard shortcuts

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