websockets

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func NewBroadcastSubject

func NewBroadcastSubject() *broadcastSubject

func NewUnicastSubject

func NewUnicastSubject() *unicastSubject

Types

type Actuator

type Actuator struct {
	Client
}

type ActuatorFetchProcess added in v0.0.12

type ActuatorFetchProcess struct {
}

ActuatorFetchProcess defines messages for actuators to fetch processes.

type ActuatorReturnProcess added in v0.0.12

type ActuatorReturnProcess struct {
}

type ActuatorStatus

type ActuatorStatus struct {
}

type Client

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

Client is a middleman between the websocket connection and the hub.

type Hub

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

Hub maintains the set of active clients and broadcasts messages to the clients.

type InitWebsocketGroupFn

type InitWebsocketGroupFn func(r *gin.RouterGroup)

func CreateInitWebSocketFn

func CreateInitWebSocketFn() InitWebsocketGroupFn

type JudgeEnd

type JudgeEnd struct {
}

type JudgeStart

type JudgeStart struct {
}

type Observer

type Observer interface {
	Notify()
}

type Subject

type Subject interface {
	AddObservers(observers ...Observer)
	NotifyObservers()
}

type User

type User struct {
	Client
}

Jump to

Keyboard shortcuts

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