mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-10 19:50:30 +08:00
feat: impl. trans & ttl
This commit is contained in:
14
gold/proto/data/data.go
Normal file
14
gold/proto/data/data.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package data
|
||||
|
||||
import (
|
||||
"github.com/fumiama/orbyte/pbuf"
|
||||
|
||||
"github.com/fumiama/WireGold/gold/head"
|
||||
"github.com/fumiama/WireGold/gold/link"
|
||||
)
|
||||
|
||||
func init() {
|
||||
link.RegisterDispacher(head.ProtoData, func(header *head.Packet, peer *link.Link, data pbuf.Bytes) {
|
||||
peer.ToLower(header, data)
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user