worker

package
v2.3.78 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const FileTimeFormat = "20060102_150405"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TableName        string
	TimeFieldName    string
	ArchiveBatchSize int
	ArchivePath      string
	UnzipNames       []string
	Frequency        string
}

type WorkerImpl

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

func NewWorkerImpl

func NewWorkerImpl(cfg Config, db *gorm.DB) *WorkerImpl

func (*WorkerImpl) Start

func (w *WorkerImpl) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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