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) UpdateClassroomsInfo ¶
func (ers *EmptyRoomSyncer) UpdateClassroomsInfo(date time.Time) error
UpdateClassroomsInfo update the classroom info in the date
Click to show internal directories.
Click to hide internal directories.