syncer

package
v0.0.0-...-fede4b9 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	FailureRateLimiterBaseDelay = time.Minute
	FailureRateLimiterMaxDelay  = 30 * time.Minute
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EmptyRoomSyncer

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

func InitEmptyRoomSyncer

func InitEmptyRoomSyncer(cache *cache.Cache) *EmptyRoomSyncer

InitEmptyRoomSyncer will init a worker queue

func (*EmptyRoomSyncer) Add

func (ers *EmptyRoomSyncer) Add(key string)

func (*EmptyRoomSyncer) ScheduledUpdateClassroomsInfo

func (ers *EmptyRoomSyncer) ScheduledUpdateClassroomsInfo(date time.Time) error

ScheduledUpdateClassroomsInfo 定期获取7天的空教室信息

func (*EmptyRoomSyncer) Start

func (ers *EmptyRoomSyncer) Start()

Start will launch the worker

func (*EmptyRoomSyncer) UpdateClassroomsInfo

func (ers *EmptyRoomSyncer) UpdateClassroomsInfo(date time.Time) error

UpdateClassroomsInfo update the classroom info in the date

Jump to

Keyboard shortcuts

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