mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-02 04:00:42 +00:00
12 lines
226 B
Go
12 lines
226 B
Go
package handler
|
|
|
|
import "ehang.io/nps/lib/enet"
|
|
|
|
type Handler interface {
|
|
GetName() string
|
|
GetZhName() string
|
|
AddRule(RuleRun)
|
|
HandleConn([]byte, enet.Conn) (bool, error)
|
|
HandlePacketConn(enet.PacketConn) (bool, error)
|
|
}
|