
The highest tagged major version is
v2.
package
Version:
v3.0.0-...-4803698
Opens a new window with list of versions in this module.
Published: Dec 30, 2025
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
NOTE: 这里放弃了zero-copy设计,因为涉及了有sendChan,这种架构下zero-copy不现实,所以返回的data,必须是新分配的内存
极致修复,就是使用RingBuffer的架构,就可以做到zero-copy
参考: gnet, evio, nbio
func RegisterCoder(t T, coder Coder)
const (
Raw T = iota
JSON
Msgp
)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.