Danmu

package module
v0.0.0-...-e188164 Latest Latest
Warning

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

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

README

DanmuinGo

A simple package of Danmu in Go.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DanmuRec

func DanmuRec(ws *websocket.Conn, vname string)

func DanmuWs

func DanmuWs(ws *websocket.Conn)

Types

type Barrage

type Barrage struct {
	Value    string  `json:"value"`
	Time     float64 `json:"time"`
	Color    string  `json:"color"`
	Fontsize int     `json:"fontzize"`
	// contains filtered or unexported fields
}

type BarrageDataAdd

type BarrageDataAdd struct {
	Typed string  `json:"typed"`
	Data  Barrage `json:"data"`
}

type BarrageDataInit

type BarrageDataInit struct {
	Typed string    `json:"typed"`
	Data  []Barrage `json:"data"`
}

type DanmuCargoAll

type DanmuCargoAll struct {
	sync.Mutex
	DanmuCargo map[string]DanmuPool `json:"danmuCargo"`
	UserPool   map[string]int64     `json:"userPool"`
}
var EdanmuCargoAll DanmuCargoAll

func (*DanmuCargoAll) PoolInit

func (this *DanmuCargoAll) PoolInit()

type DanmuPool

type DanmuPool []Barrage

Jump to

Keyboard shortcuts

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