syncer

package
v0.0.0-...-eb3d57b Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AcademicSyncer

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

func InitAcademicSyncer

func InitAcademicSyncer() *AcademicSyncer

InitAcademicSyncer will init a worker queue

func (*AcademicSyncer) Add

func (ers *AcademicSyncer) Add(key QueueTask)

func (*AcademicSyncer) Start

func (ers *AcademicSyncer) Start()

Start will launch the worker

type QueueTask

type QueueTask interface {
	Execute() error
}

type SetScoresCacheTask

type SetScoresCacheTask struct {
	Key     string
	Scores  []*jwch.Mark
	Cache   *cache.Cache
	Context context.Context
}

func (*SetScoresCacheTask) Execute

func (t *SetScoresCacheTask) Execute() error

Jump to

Keyboard shortcuts

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