ws

package
v0.0.0-...-6f8eb63 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ServeWs

func ServeWs(pool *worker.WorkerPool, w http.ResponseWriter, r *http.Request)

Types

type Client

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

type OutcomeMSG

type OutcomeMSG struct {
	Type string `json:"type"`
	Code string `json:"code"`
}

type QueueMSG

type QueueMSG struct {
	Type    string `json:"type"`
	Code    string `json:"code"`
	Timeout int    `json:"timeout"`
}

type SearchingMSG

type SearchingMSG struct {
	Type     string `json:"type"`
	AuthCode string `json:"auth-code"`
	Code     string `json:"code"`
}

Jump to

Keyboard shortcuts

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