web

package
v1.3.9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Unlicense Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Socket

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

func NewSocket

func NewSocket(
	conn *websocket.Conn,
	req *http.Request,
	challenge by,
) (ws *Socket)

func (*Socket) AuthRequested added in v1.0.7

func (ws *Socket) AuthRequested() bo

func (*Socket) Authed

func (ws *Socket) Authed() st

func (*Socket) AuthedBytes added in v1.0.13

func (ws *Socket) AuthedBytes() by

func (*Socket) Challenge

func (ws *Socket) Challenge() st

func (*Socket) IsAuthed added in v1.0.14

func (ws *Socket) IsAuthed() bo

func (*Socket) Limiter

func (ws *Socket) Limiter() *rate.Limiter

func (*Socket) RealRemote

func (ws *Socket) RealRemote() st

func (*Socket) Req

func (ws *Socket) Req() *http.Request

func (*Socket) RequestAuth added in v1.0.7

func (ws *Socket) RequestAuth()

func (*Socket) SetAuthed

func (ws *Socket) SetAuthed(s st)

func (*Socket) SetLimiter

func (ws *Socket) SetLimiter(l *rate.Limiter)

func (*Socket) Write

func (ws *Socket) Write(p by) (n no, err er)

func (*Socket) WriteJSON

func (ws *Socket) WriteJSON(any interface{}) er

func (*Socket) WriteMessage

func (ws *Socket) WriteMessage(t no, b by) er

Jump to

Keyboard shortcuts

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