userconn

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserConn

type UserConn interface {
	ReadRequest() ([]byte, error)
	ReadRequestParams() map[string]string
	WriteResponse(msg []byte) error
	SupportsSubscriptions() bool
	IsClosed() bool
	GetHTTPRequest() *http.Request
}

UserConn represents a connection to a user.

func NewUserConnHTTP

func NewUserConnHTTP(resp http.ResponseWriter, req *http.Request, logger gethlog.Logger) UserConn

func NewUserConnWS

func NewUserConnWS(resp http.ResponseWriter, req *http.Request, logger gethlog.Logger) (UserConn, error)

Jump to

Keyboard shortcuts

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