serv

package
Version: v0.0.0-...-0c79dac Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 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(ag kim.Agent, p *pkt.LogicPkt, status pkt.Status) error

Types

type ServHandler

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

ServHandler ServHandler

func NewServHandler

func NewServHandler(r *kim.Router, cache kim.SessionStorage) *ServHandler

func (*ServHandler) Accept

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

Accept this connection

func (*ServHandler) Disconnect

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

Disconnect default listener

func (*ServHandler) Receive

func (h *ServHandler) Receive(ag kim.Agent, payload []byte)

Receive default listener

type ServerDispather

type ServerDispather struct {
}

func (*ServerDispather) Push

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL