Documentation ¶
Index ¶
- type AddressFetcher
- type Client
- func (c *Client) Ack(event string, v interface{}, r interface{}) (err error)
- func (c *Client) Close()
- func (c *Client) Emit(event string, v interface{}) (err error)
- func (c *Client) FetchAddress() (err error)
- func (c *Client) IsClosed() bool
- func (c *Client) MustStart()
- func (c *Client) On(e string, fn EventHandler)
- func (c *Client) RemoteAddr() string
- func (c *Client) Start() error
- type Context
- type EventHandler
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressFetcher ¶ added in v0.3.0
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) FetchAddress ¶ added in v0.3.0
func (*Client) On ¶
func (c *Client) On(e string, fn EventHandler)
func (*Client) RemoteAddr ¶
type EventHandler ¶
type Options ¶
type Options struct { // common WorkId uint16 AddressFetcher AddressFetcher PacketSendChanLimit uint32 PacketReceiveChanLimit uint32 MessageTimeout time.Duration Codec air.Codec Logger air.Logger // only for client HeartbeatInterval time.Duration ReconnectInterval time.Duration ReconnectLimit uint32 Reconnect bool }
func DefaultOptions ¶
func DefaultOptions() *Options
Click to show internal directories.
Click to hide internal directories.