websocket

package
v0.0.0-...-857e7d9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Hub *hub
)
View Source
var Version string
View Source
var WS *ws

Functions

func InitHub

func InitHub()

Types

type Client

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

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

type Message

type Message struct {
	Sender   string `json:"sender"`
	Receiver string `json:"receiver"`
	IsDirect bool   `json:"is_direct"`
	Topic    string `json:"topic"`
	IsHost   bool   `json:"is_host"`
	Msg      string `json:"msg"`
}

Jump to

Keyboard shortcuts

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