global

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Version pure-live version desc
	Version = "v0.1.4"
)

Variables

View Source
var Cache = cache.Init()
View Source
var DB *gorm.DB

DB global database instance

View Source
var Hub = &hub{}

Hub connection pool

Functions

func GetRuntime

func GetRuntime() string

GetRuntime get runtime info

Types

type Conn

type Conn struct {
	Room   string          `json:"room"`
	Server *websocket.Conn `json:"server"`
	Client model.Client    `json:"client"`
}

Conn live connection

func GetConn

func GetConn(id string) (*Conn, error)

GetConn get connection from pool

Jump to

Keyboard shortcuts

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