Documentation ¶
Index ¶
- func NewClient(id, name string, lg *zap.Logger, opts ClientOptions) qim.Client
- func NewClientWithProps(id, name string, meta map[string]string, lg *zap.Logger, opts ClientOptions) qim.Client
- func NewConn(conn net.Conn) qim.Conn
- func NewServer(listen string, service qim.ServiceRegistration, options ...qim.ServerOption) qim.Server
- type Client
- func (c *Client) Close()
- func (c *Client) Connect(addr string) error
- func (c *Client) GetMeta() map[string]string
- func (c *Client) Read() (qim.Frame, error)
- func (c *Client) Send(payload []byte) error
- func (c *Client) ServiceID() string
- func (c *Client) ServiceName() string
- func (c *Client) SetDialer(dialer qim.Dialer)
- type ClientOptions
- type Frame
- type Upgrader
- type WsConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClientWithProps ¶
func NewServer ¶
func NewServer(listen string, service qim.ServiceRegistration, options ...qim.ServerOption) qim.Server
Types ¶
type Client ¶
func (*Client) Read ¶
Read implements qim.Client Read a frame, this function is not safety for concurrent
func (*Client) ServiceName ¶
ServiceName implements qim.Client
type ClientOptions ¶
type Frame ¶
type Frame struct {
// contains filtered or unexported fields
}
func (*Frame) SetPayload ¶
SetPayload implements qim.Frame
Click to show internal directories.
Click to hide internal directories.