internal

package
v0.0.0-...-2b90726 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const BadDemosS3KeyPrefixSuffix = "bad"
View Source
const BucketName = "csknow"
View Source
const DemosS3KeyPrefixSuffix = "demos"
View Source
const HDF5KeySuffix = "hdf5"
View Source
const InvalidFloat float32 = -1.
View Source
const InvalidInt int = -1

Variables

This section is empty.

Functions

func DeleteFile

func DeleteFile(svc *s3.S3, s3Key string)

func DownloadDemo

func DownloadDemo(downloader *s3manager.Downloader, fileKey string, localFileName string)

func FilterRounds

func FilterRounds(idState *IDState, shouldFilterRounds bool) bool

func FixRounds

func FixRounds()

func FlushStructure

func FlushStructure(firstRun bool)

func FlushTickData

func FlushTickData(close bool)

func InitTablesTrackers

func InitTablesTrackers(localDemName string)

func ParseDemo

func ParseDemo(unprocessedKey string, localDemName string, idState *IDState, firstRun bool, gameType c.GameType,
	shouldFilterRounds bool) bool

func ProcessStructure

func ProcessStructure(unprocessedKey string, localDemName string, idState *IDState, gameType c.GameType) bool

func ProcessTickData

func ProcessTickData(localDemName string, idState *IDState)

func RemoveTablesTrackers

func RemoveTablesTrackers(localDemName string)

func SaveEquipmentFile

func SaveEquipmentFile()

SaveEquipmentFile function rather than make on init as need parser to init it's table

func SaveGameTypesFile

func SaveGameTypesFile()

func SaveHitGroupsFile

func SaveHitGroupsFile()

func SaveOutputStateCSV

func SaveOutputStateCSV(idState *IDState)

func UploadFile

func UploadFile(uploader *s3manager.Uploader, localPath string, s3Key string)

Types

type IDState

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

IDState the next id to use for each fact table

func DefaultIDState

func DefaultIDState() IDState

func ParseInputStateCSV

func ParseInputStateCSV() IDState

type RowIndex

type RowIndex int64
const InvalidId RowIndex = -1

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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