engine

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

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

Go to latest
Published: Aug 2, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer() *server

Types

type Message

type Message struct {
	MsgType string
	Name    string
	ChatID  string
	Message string
}

type Peers

type Peers struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

type UserData

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

func NewClient

func NewClient(conn *websocket.Conn, br *broadcast, name, chatID string) *UserData

func (*UserData) SetPublicKey

func (cli *UserData) SetPublicKey(key string)

Jump to

Keyboard shortcuts

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