serv

package
v0.0.0-...-c0a7596 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RespErr

func RespErr(ag goim.Agent, p *pkt.LogicPkt, status pkt.Status) error

Types

type ServHandler

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

ServHandler ServHandler

func (*ServHandler) Accept

func (h *ServHandler) Accept(conn goim.Conn, timeout time.Duration) (string, goim.Metadata, 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 goim.Agent, payload []byte)

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