codec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package codec defines helpers for message envelope encoding/decoding. Package codec 定义消息信封编解码辅助能力。

Package codec — see codec.go for the full package doc. 本文件提供默认的 JSON 编解码器实现。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec = realtime.Codec

Codec is an alias of realtime.Codec. Codec 是 realtime.Codec 的别名,避免子包与根包接口定义分叉。

func JSON

func JSON() Codec

JSON returns the default JSON envelope codec. JSON 返回默认 JSON 信封编解码器,适合直接与 realtime.Message 配合使用。

Jump to

Keyboard shortcuts

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