Help us shape the future of Go! Take the 2026 Go Developer Survey

base

package
v1.12.19 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildBroadcast

func BuildBroadcast(nodeType uint32) string

构建广播主题

func BuildPoint

func BuildPoint(nodeType, nodeId uint32) string

构建 NATS 单播主题

func BuildPointSlot added in v1.12.17

func BuildPointSlot(nodeType, nodeId uint32, slot uint32) string

BuildPointSlot 构建分片后的单播主题:{type}/{id}/{slot}

func BuildReply

func BuildReply(nodeType, nodeId uint32) string

构建回复主题

func GetBytes

func GetBytes() []byte

func PacketHandler

func PacketHandler(msg *packet.Packet)

func PutBytes

func PutBytes(val []byte)

func SetPacketFunc

func SetPacketFunc(f func(*packet.Packet))

Types

This section is empty.

Jump to

Keyboard shortcuts

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