Documentation ¶
Index ¶
- Variables
- type AnalyzerDeathMatch
- func (a *AnalyzerDeathMatch) AddDataAnalyzer(demoIDs []int64) error
- func (a *AnalyzerDeathMatch) CheckForEver()
- func (a *AnalyzerDeathMatch) CheckOutAnalyzed() error
- func (a *AnalyzerDeathMatch) ParseOneGame(data DataAnalyzerDeathMatch)
- func (a *AnalyzerDeathMatch) Shutdown()
- func (a *AnalyzerDeathMatch) Transcript(parser ParserDeathMatch, demo *model.DeathMatchDemo)
- type DataAnalyzerDeathMatch
- type ParserDeathMatch
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrChanFull = errors.New("chan analyzer is full")
ErrChanFull chan is full
View Source
var ErrCouldNotShutdown = errors.New("could not shutdown analyzerdeathmatch analyzer deathmatch")
ErrCouldNotShutdown could not shutdown analyzer deathmatch
Functions ¶
This section is empty.
Types ¶
type AnalyzerDeathMatch ¶
type AnalyzerDeathMatch struct { PathStorage string // contains filtered or unexported fields }
AnalyzerDeathMatch stores the games it has to analyze
func Start ¶
func Start(db *gorm.DB, logAnalyzer *custlogger.Logger, version int64, schema string, PathStorage string, portServer int) (*AnalyzerDeathMatch, error)
Start starts this worker
func (*AnalyzerDeathMatch) AddDataAnalyzer ¶
func (a *AnalyzerDeathMatch) AddDataAnalyzer(demoIDs []int64) error
AddDataAnalyzer add data to be analyzed
func (*AnalyzerDeathMatch) CheckForEver ¶
func (a *AnalyzerDeathMatch) CheckForEver()
CheckForEver this check if new demo need to be analyzed
func (*AnalyzerDeathMatch) CheckOutAnalyzed ¶
func (a *AnalyzerDeathMatch) CheckOutAnalyzed() error
CheckOutAnalyzed at the start of the analyzer, check if their is demo to (re)analyze or not
func (*AnalyzerDeathMatch) ParseOneGame ¶
func (a *AnalyzerDeathMatch) ParseOneGame(data DataAnalyzerDeathMatch)
ParseOneGame start to analyze one game
func (*AnalyzerDeathMatch) Shutdown ¶
func (a *AnalyzerDeathMatch) Shutdown()
Shutdown shutdown AnalyzerDeathMatch
func (*AnalyzerDeathMatch) Transcript ¶
func (a *AnalyzerDeathMatch) Transcript(parser ParserDeathMatch, demo *model.DeathMatchDemo)
Transcript convert a demo to be stored in the DB
type DataAnalyzerDeathMatch ¶
type DataAnalyzerDeathMatch struct {
// contains filtered or unexported fields
}
DataAnalyzerDeathMatch data send to be analyzed
type ParserDeathMatch ¶
type ParserDeathMatch struct { DemoID int64 ParserDemoinfocs demoinfocs.Parser Game *modelanalyzerdeathmatch.Game // contains filtered or unexported fields }
ParserDeathMatch type to parse the game
func (*ParserDeathMatch) PlayerHurt ¶
func (p *ParserDeathMatch) PlayerHurt()
PlayerHurt event when a player has been hurt
func (*ParserDeathMatch) WeaponFire ¶
func (p *ParserDeathMatch) WeaponFire()
WeaponFire event when a player fire
Click to show internal directories.
Click to hide internal directories.