Documentation
¶
Overview ¶
Package redcron is distributed timers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(r *Request)
Option is parameter.
func WithTRPCOption ¶
WithTRPCOption adds trpc option。
type RedCron ¶
type RedCron struct {
// contains filtered or unexported fields
}
RedCron is distributed timing task object.
type Request ¶
type Request struct { EntryID cron.EntryID // Timing task ID. Spec string // cron timing time description string. // contains filtered or unexported fields }
Request is filter request body.
type Response ¶
type Response struct { IsRun bool // Whether to be executed. NotRunReason string // Reason for not running. Now time.Time // Current time Store time.Time // Redis stores time. Prev time.Time // Current timer execution time. Next time.Time // The next execution time of the timer. Cas int64 // Redis CAS is convenient for locating problems. LastErr error // Last error. }
Response is the filter response body.
Click to show internal directories.
Click to hide internal directories.