Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FrontClient ¶
type FrontClient struct {
// contains filtered or unexported fields
}
func NewPartClient ¶
func NewPartClient(f func(client *FrontClient)) *FrontClient
func (*FrontClient) Close ¶
func (p *FrontClient) Close() error
关闭连接
返回,error。如果关闭连接时出错,就返回错误信息,否则返回nil
func (*FrontClient) Push ¶
func (p *FrontClient) Push(c *net.TCPConn)
func (*FrontClient) Start ¶
func (p *FrontClient) Start() error
打开连接
返回,error。如果连接到服务器时出错,就返回错误信息,否则返回nil
type FrontService ¶
type FrontService struct {
// contains filtered or unexported fields
}
处理前端业务,主要是解析ssdb请求,并发送给ssdb
func NewFrontService ¶
func NewFrontService(count int) *FrontService
func (*FrontService) Push ¶
func (f *FrontService) Push(c *net.TCPConn)
Click to show internal directories.
Click to hide internal directories.