websocket

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manager = ClientManager{
	// contains filtered or unexported fields
}

Functions

func WsPage

func WsPage(res http.ResponseWriter, req *http.Request, statsData *StatsData)

Types

type Client

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

type ClientManager

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

func (*ClientManager) Start

func (manager *ClientManager) Start()

type Message

type Message struct {
	Sender    string `json:"sender,omitempty"`
	Recipient string `json:"recipient,omitempty"`
	Content   string `json:"content,omitempty"`
}

type StatsData

type StatsData struct {
	Cfg     *common.GlobalConfig
	Devices []core.BaseDevice
}

Jump to

Keyboard shortcuts

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