Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DefaultTTLJobWithMutex ¶
type DefaultTTLJobWithMutex struct{}
DefaultTTLJobWithMutex is a default implementation of JobWithMutex.
func (DefaultTTLJobWithMutex) GetMutexTTL ¶
func (DefaultTTLJobWithMutex) GetMutexTTL() time.Duration
type JobWithMutex ¶
type Mutex ¶
type Mutex interface { // Lock tries to acquire the mutex for the job. // If the mutex is acquired, it returns true. // If the mutex is not acquired, it returns false. Lock(ctx context.Context, job JobWithMutex) (bool, error) // Unlock releases the mutex for the job. Unlock(ctx context.Context, job JobWithMutex) error }
type Option ¶
type Option func(*options)
func WithLogger ¶
func WithLogger(logger cron.Logger) Option
Click to show internal directories.
Click to hide internal directories.