sockets

package
v0.0.0-...-2e37a7f Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInstance

func GetInstance() *socketHandler

GetSocketHandlerInstance will return the instance of the socketHandler this will be a Singleton object

Types

type Message

type Message struct {
	ID int `json:"ID"`
}

Message will be the structure used as a message container to be send to the user

type Sockets

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

Sockets is a structure to save all user connection related info

func NewSocket

func NewSocket(user *websocket.Conn) *Sockets

NewSocket is the constructor for Sockets

type Void

type Void func()

Void is a type to send void functions as arguments

Jump to

Keyboard shortcuts

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