serv

package
v0.0.0-...-69995ca Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 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, kim.Meta, 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 ServerDispatcher

type ServerDispatcher struct {
}

func (*ServerDispatcher) Push

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

Jump to

Keyboard shortcuts

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