Versions in this module Expand all Collapse all v5 v5.0.1 Jul 28, 2026 Changes in this version + func BuildRenderWorkerAdaptiveChunkBounds(parseWeights []int, parseChunkCount int) [][2]int + func BuildRenderWorkerChunkLocalIndexes(parseGlobalIndexes []int, parseStart int, parseEnd int) []int + func BuildRenderWorkerPool(parseCtx context.Context, parseOptions PoolOptions) (interop.WorkerPool, error) + func RequestRenderWorkerChunkBatches[BatchReq any, BatchRes any, ChunkRes any](parseOptions BatchDispatchOptions[BatchReq, BatchRes, ChunkRes]) ([]ChunkRes, error) + func SetRenderWorkerDecodedHandler[Req any, Res any](parseDispatcher *RenderWorkerDispatcher, parseRequestName string, ...) error + type BatchDispatchOptions struct + BuildBatchRequest func(RenderWorkerLanePlan) BatchReq + GetBatchChunks func(BatchRes) []ChunkRes + GetBatchGeneration func(BatchRes) uint64 + GetChunkCount int + GetChunkGeneration func(ChunkRes) uint64 + GetChunkIndex func(ChunkRes) int + GetCtx context.Context + GetExpectedGeneration uint64 + GetLanePlans []RenderWorkerLanePlan + GetRequestName string + GetRequesters []interop.WorkerRequester + HandlePartialChunkResults func([]ChunkRes) + IsBatchStale func(BatchRes) bool + IsChunkStale func(ChunkRes) bool + type DecodedHandlerOptions struct + GetRequestTimeout time.Duration + ShouldRecoverPanic bool + type Handler func(interop.WorkerScope, interop.WorkerMessage) + func BuildRenderWorkerDecodedHandlerWithOptions[Req any, Res any](parseRequestName string, parseHandle func(context.Context, Req) (Res, error), ...) Handler + func BuildRenderWorkerDecodedHandler[Req any, Res any](parseRequestName string, parseHandle func(context.Context, Req) (Res, error)) Handler + type PoolOptions struct + GetNamePrefix string + GetQueueLimit int + GetReadyTimeout time.Duration + GetRuntimeURL string + GetSize int + GetWASMURL string + IsReady bool + type RenderWorkerChunkPlan struct + GetChunkIndex int + GetEnd int + GetStart int + GetWeight int + func BuildRenderWorkerChunkPlans(parseChunkBounds [][2]int, parseWeights []int) []RenderWorkerChunkPlan + type RenderWorkerDispatcher struct + func BuildRenderWorkerDispatcher(parseDefaultRequestName string) *RenderWorkerDispatcher + func (parseDispatcher *RenderWorkerDispatcher) HandleRenderWorkerMessage(parseScope interop.WorkerScope, parseMessage interop.WorkerMessage) + func (parseDispatcher *RenderWorkerDispatcher) SetRenderWorkerHandler(parseRequestName string, parseHandler Handler) error + type RenderWorkerGenerationTracker struct + func BuildRenderWorkerGenerationTracker() *RenderWorkerGenerationTracker + func (parseTracker *RenderWorkerGenerationTracker) GetRenderWorkerLatestGeneration(parseRequestName string) uint64 + func (parseTracker *RenderWorkerGenerationTracker) ShouldRenderWorkerDropStaleRequest(parseRequestName string, parseGeneration uint64) bool + type RenderWorkerLanePlan struct + GetChunkPlans []RenderWorkerChunkPlan + GetTotalWeight int + GetWorkerIndex int + func BuildRenderWorkerLanePlans(parseWorkerCount int, parseChunkPlans []RenderWorkerChunkPlan) []RenderWorkerLanePlan Other modules containing this package github.com/monstercameron/GoWebComponents/v4