package
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Nov 28, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Interface interface {
RegisterId(id int64)
Id() int64
RegisterRemoveChan(ch chan<- int64)
RegisterConnWriteChan(ch chan<- []byte)
RegisterConnClose(do func())
RegisterConnPing(do func())
Ping()
Handler(data []byte) (res []byte, err error)
Run()
Close()
}
type MessageHandler interface {
Read() <-chan []byte
Write(in []byte) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.