calcwkr

package
v0.0.0-...-570c91f Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WorkerCalcTypeStatsCalc = WorkerCalcType("stats")

Functions

func Start

func Start(conf *appconfig.Config, deps WorkerDeps)

Types

type Worker

type Worker struct {
	WorkerDeps
	// contains filtered or unexported fields
}

func (*Worker) Count

func (w *Worker) Count() int

type WorkerCalcType

type WorkerCalcType string

func (WorkerCalcType) URL

func (t WorkerCalcType) URL(w *Worker) string

type WorkerDeps

type WorkerDeps struct {
	fx.In

	Config               *appconfig.Config
	DropMatrixService    *service.DropMatrix
	PatternMatrixService *service.PatternMatrix
	TrendService         *service.Trend
	SiteStatsService     *service.SiteStats
	ArchiveService       *service.Archive
	RedSync              *redsync.Redsync
}

Jump to

Keyboard shortcuts

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