serv

package
v0.0.0-...-e7f8777 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespErr

func RespErr(agent qim.Agent, p *pkt.LogicPkt, status pkt.Status) error

Types

type ServHandler

type ServHandler struct {
	// contains filtered or unexported fields
}

func NewServHandler

func NewServHandler(r *qim.Router, cache qim.SessionStorage, lg *zap.Logger) *ServHandler

func (*ServHandler) Accept

func (h *ServHandler) Accept(conn qim.Conn, timeout time.Duration) (string, qim.Meta, error)

Accept implements qim.Acceptor

func (*ServHandler) Disconnect

func (h *ServHandler) Disconnect(channelID string) error

Disconnect implements qim.StateListener

func (*ServHandler) Receive

func (h *ServHandler) Receive(agent qim.Agent, payload []byte)

Receive implements qim.MessageListener

type ServerDispatcher

type ServerDispatcher struct {
}

func (*ServerDispatcher) Push

func (d *ServerDispatcher) Push(gateway string, channels []string, p *pkt.LogicPkt) error

Push implements qim.Dispatcher

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL