Documentation
¶
Index ¶
- Variables
- type CliDelegate
- type Client
- type Controller
- func (c *Controller) CancelAll()
- func (c *Controller) Close()
- func (c *Controller) GetOutChan() packet.RecvChan
- func (c *Controller) GetReqId() uint32
- func (c *Controller) Request(req *packet.Packet) *packet.Packet
- func (c *Controller) Send(req *packet.Packet)
- func (c *Controller) SendTimeout(req *packet.Packet, timeout time.Duration) bool
- func (c *Controller) ShowStage() []StageInfo
- func (c *Controller) WriteChan() chan *Request
- type Group
- type Queue
- type QueueItem
- type Request
- type Server
- type Stage
- type StageInfo
- type StageRequest
- type SvrDelegate
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTimeout = fmt.Errorf("timed out")
)
Functions ¶
This section is empty.
Types ¶
type CliDelegate ¶
type CliDelegate interface {
OnNewDC(port []int)
}
type Client ¶
type Client struct { *Controller // contains filtered or unexported fields }
func (*Client) RequestNewDC ¶
func (c *Client) RequestNewDC()
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func (*Controller) CancelAll ¶
func (c *Controller) CancelAll()
func (*Controller) Close ¶
func (c *Controller) Close()
func (*Controller) GetOutChan ¶
func (c *Controller) GetOutChan() packet.RecvChan
func (*Controller) GetReqId ¶
func (c *Controller) GetReqId() uint32
func (*Controller) Send ¶
func (c *Controller) Send(req *packet.Packet)
func (*Controller) SendTimeout ¶
func (*Controller) ShowStage ¶
func (c *Controller) ShowStage() []StageInfo
func (*Controller) WriteChan ¶
func (c *Controller) WriteChan() chan *Request
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
func (*Group) OnDchanPortUpdate ¶
func (*Group) RunDeliver ¶
type Server ¶
type Server struct { *Controller // contains filtered or unexported fields }
func (*Server) NotifyDataChannel ¶
func (*Server) UserRelogin ¶
type SvrDelegate ¶
type SvrDelegate interface {
GetAllDataChannel() []int
}
Click to show internal directories.
Click to hide internal directories.