dataproc

package
v0.0.0-...-359acad Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2026 License: GPL-3.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Ranked1v1 = 1 << iota
	Ranked2v2
	Ranked3v3
	Ranked4v4
	RankedArchon
	Custom1v1
	Custom2v2
	Custom3v3
	Custom4v4
	CustomFFA
)

Variables

This section is empty.

Functions

func FileProcessingPipeline

func FileProcessingPipeline(
	replayFile string,
	grpcAnonymizer *GRPCAnonymizer,
	englishToForeignMapping map[string]string,
	cliFlags utils.CLIFlags,
) (bool, replay_data.CleanedReplay, persistent_data.ReplaySummary, string)

FileProcessingPipeline is performing the whole data processing pipeline for a replay file. Reads the replay, cleans the replay structure, creates replay summary, anonymizes, and creates a JSON replay output.

func MultiprocessingChunkPipeline

func MultiprocessingChunkPipeline(
	listOfFiles []string,
	packageToZipBool bool,
	compressionMethod uint16,
	chunkIndex int,
	englishToForeignMapping map[string]string,
	progressBar *progressbar.ProgressBar,
	cliFlags utils.CLIFlags,
	singleJsonResultChan chan<- string,
)

MultiprocessingChunkPipeline is a single instance of processing that is meant to be spawned by the orchestrator in order to speed up the process of data extraction.

func PipelineWrapper

func PipelineWrapper(
	fileChunks [][]string,
	packageToZipBool bool,
	compressionMethod uint16,
	foreignToEnglishMapping map[string]string,
	cliFlags utils.CLIFlags,
)

PipelineWrapper is an orchestrator that distributes work among available workers (threads)

Types

type GRPCAnonymizer

type GRPCAnonymizer struct {
	Connection *grpc.ClientConn
	Client     pb.AnonymizeServiceClient
	Cache      map[string]string
}

Create new class, AnonymizerClient, that wraps the gRPC client (pb.NewAnonymizeServiceClient(conn) should happen once). The class will store the gRPC connection and can store a local cache of responses.

type ReplayProcessingChannelContents

type ReplayProcessingChannelContents struct {
	Index        int
	ChunkOfFiles []string
}

ReplayProcessingChannelContents is a struct that is used to pass data between the orchestrator and the workers in the pipeline.

type VerifyGameInfo

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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