Documentation
¶
Index ¶
- func InitBufferWriter() (*bytes.Buffer, *zip.Writer)
- func NewProgressBar(lenghtOfProgressbar int, progressBarDescription string) *progressbar.ProgressBar
- func SaveFileToArchive(replayString string, replayFile string, compressionMethod uint16, ...) bool
- func SetLogging(logPath string, logLevel int) (*os.File, bool)
- func SetProfiling(profilingPath string) (*os.File, bool)
- type CLIFlags
- type LogFlags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitBufferWriter ¶
initBufferWriter initializes a bytes buffer that is used to hold all of the information that writer will write to the archive
func NewProgressBar ¶
func NewProgressBar( lenghtOfProgressbar int, progressBarDescription string, ) *progressbar.ProgressBar
NewProgressBar creates a new progress bar standardized for the project.
func SaveFileToArchive ¶
func SaveFileToArchive( replayString string, replayFile string, compressionMethod uint16, writer *zip.Writer, ) bool
SaveFileToArchive creates a file header and saves replayString (JSON) bytes into the zip writer
func SetLogging ¶
setLogging contains logic that is used to initialize logging to a specified file with a specified level.
Types ¶
type CLIFlags ¶
type CLIFlags struct { InputDirectory string OutputDirectory string OnlyDependencyDownload bool SkipDependencyDownload bool DependencyDirectory string NumberOfThreads int NumberOfPackages int PerformIntegrityCheck bool PerformValidityCheck bool PerformCleanup bool PerformPlayerAnonymization bool PerformChatAnonymization bool PerformFiltering bool FilterGameMode int LogFlags LogFlags CPUProfilingPath string }
CLIFlags is a structure which holds all of the information that was supplied by user in CLI.
func ParseFlags ¶
ParseFlags contains logic which is responsible for user input.
type LogFlags ¶
type LogFlags struct { LogLevelValue datastruct.LogLevelEnum LogPath string }
LogFlags contains settings that the user can set for logging.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.