goyang

package module
v0.0.0-...-048ab19 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2022 License: MIT Imports: 6 Imported by: 0

README

goyang

Real-time communication protocol

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidProtocol = errors.New("invalid protocol")

Functions

func ReleaseConn

func ReleaseConn(c *Conn)

Types

type Conn

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

func AcquireConn

func AcquireConn() *Conn

type Protocols

type Protocols uint8
const (
	ProtocolHTTP_BODY_V1 Protocols = iota
	ProtocolWEBSOCKET
	ProtocolWEBTRANSPORT
	ProtocolIFRAME
	ProtocolPOLL
)

type Yang

type Yang struct {
	WSUpgrade websocket.Upgrader
	// contains filtered or unexported fields
}

func (*Yang) Upgrade

func (y *Yang) Upgrade(w http.ResponseWriter, r *http.Request) (*Conn, error)

Jump to

Keyboard shortcuts

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