player

package
v0.0.0-...-c314f80 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Location

type Location struct {
	Longitude string // 经度
	Latitude  string // 纬度
	Address   string // 地址
	Ip        string // IP
}

type Player

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

func New

func New() *Player

func (*Player) AddScore

func (p *Player) AddScore(score int32)

func (*Player) Auto

func (p *Player) Auto() bool

func (*Player) AutoTs

func (p *Player) AutoTs() time.Duration

func (*Player) Extend

func (p *Player) Extend(key string) interface{}

func (*Player) Line

func (p *Player) Line() bool

func (*Player) Location

func (p *Player) Location() *Location

func (*Player) Offline

func (p *Player) Offline(ts int64)

func (*Player) OfflineTs

func (p *Player) OfflineTs() int64

func (*Player) Online

func (p *Player) Online()

func (*Player) Op

func (p *Player) Op() bool

func (*Player) Ready

func (p *Player) Ready() bool

func (*Player) Score

func (p *Player) Score(index int) int32

func (*Player) SetAuto

func (p *Player) SetAuto(b bool)

func (*Player) SetAutoTs

func (p *Player) SetAutoTs(ts time.Duration)

func (*Player) SetExtend

func (p *Player) SetExtend(key string, val interface{})

func (*Player) SetLocation

func (p *Player) SetLocation(location *Location)

func (*Player) SetOp

func (p *Player) SetOp(b bool)

func (*Player) SetReady

func (p *Player) SetReady(b bool)

func (*Player) SetSite

func (p *Player) SetSite(site uint32)

func (*Player) SetView

func (p *Player) SetView(b bool)

func (*Player) Site

func (p *Player) Site() uint32

func (*Player) View

func (p *Player) View() bool

func (*Player) WatchAuto

func (p *Player) WatchAuto(f func(*Player))

func (*Player) WatchAutoTs

func (p *Player) WatchAutoTs(f func(*Player))

func (*Player) WatchExtend

func (p *Player) WatchExtend(f func(*Player))

func (*Player) WatchLine

func (p *Player) WatchLine(f func(*Player))

func (*Player) WatchLocation

func (p *Player) WatchLocation(f func(*Player))

func (*Player) WatchOp

func (p *Player) WatchOp(f func(*Player))

func (*Player) WatchReady

func (p *Player) WatchReady(f func(*Player))

func (*Player) WatchScore

func (p *Player) WatchScore(f func(*Player))

func (*Player) WatchSite

func (p *Player) WatchSite(f func(*Player))

func (*Player) WatchView

func (p *Player) WatchView(f func(*Player))

Jump to

Keyboard shortcuts

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