gateway

package
v0.5.29 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloseHandler

type CloseHandler = func(c rony.Conn)

type ConnectHandler

type ConnectHandler = func(c rony.Conn, kvs ...*rony.KeyValue)

type Gateway

type Gateway interface {
	Start()
	Run()
	Shutdown()
	GetConn(connID uint64) rony.Conn
	Addr() []string
}

Gateway defines the gateway interface where clients could connect and communicate with the edge server

type MessageHandler

type MessageHandler = func(c rony.Conn, streamID int64, data []byte)

type MuxHandler added in v0.5.23

type MuxHandler = func(date []byte, kv map[string]interface{}) []byte

type Protocol

type Protocol int32
const (
	Undefined Protocol = 0
	Dummy     Protocol = 1 << iota
	Http
	Websocket
	Quic
	Grpc
	// Mixed
	TCP Protocol = 0x0003 // Http & Websocket
)

func (Protocol) String

func (p Protocol) String() string

type RequestCtx added in v0.5.23

type RequestCtx = fasthttp.RequestCtx

Directories

Path Synopsis
tcp
util
Package wsutil provides utilities for working with WebSocket protocol.
Package wsutil provides utilities for working with WebSocket protocol.

Jump to

Keyboard shortcuts

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