Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultListenAddr = "127.0.0.1:9001"
)
Variables ¶
View Source
var ( DefaultConnect = func() *net.TCPAddr { tcpAddr, _ := net.ResolveTCPAddr("tcp", DefaultListenAddr) return tcpAddr } )
Functions ¶
Types ¶
type ConnHandler ¶
type Service ¶
type Service interface {
Start() error
SetHandler(handle ConnHandler)
Close()
}
Click to show internal directories.
Click to hide internal directories.