Documentation ¶
Index ¶
- Variables
- func AcquireLock(conn redis.Conn, lockerKey string, lockerID string, expireTime int64) error
- func HmGet(conn redis.Conn, key string, fields ...interface{}) ([]interface{}, error)
- func HmSet(conn redis.Conn, key string, fieldAndValues ...interface{}) error
- func KeyHookEventRetryQueue(namespace string) string
- func KeyJobStats(namespace string, jobID string) string
- func KeyNamespacePrefix(namespace string) string
- func KeyPeriod(namespace string) string
- func KeyPeriodicLock(namespace string) string
- func KeyPeriodicNotification(namespace string) string
- func KeyPeriodicPolicy(namespace string) string
- func KeyStatusUpdateRetryQueue(namespace string) string
- func KeyUpstreamJobAndExecutions(namespace, upstreamJobID string) string
- func RedisKeyLastPeriodicEnqueue(namespace string) string
- func RedisKeyScheduled(namespace string) string
- func RedisNamespacePrefix(namespace string) string
- func ReleaseLock(conn redis.Conn, lockerKey string, lockerID string) error
- func ZPopMin(conn redis.Conn, key string) (interface{}, error)
- type JobScore
Constants ¶
This section is empty.
Variables ¶
var ErrNoElements = errors.New("no elements got from the backend")
ErrNoElements is a pre defined error to describe the case that no elements got from the backend database.
Functions ¶
func AcquireLock ¶
AcquireLock acquires a redis lock with specified expired time
func KeyHookEventRetryQueue ¶
KeyHookEventRetryQueue returns the key of hook event retrying queue
func KeyJobStats ¶
KeyJobStats returns the key of job stats
func KeyNamespacePrefix ¶
KeyNamespacePrefix returns the based key based on the namespace.
func KeyPeriodicLock ¶
KeyPeriodicLock returns the key of locker under period
func KeyPeriodicNotification ¶
KeyPeriodicNotification returns the key of periodic pub/sub channel.
func KeyPeriodicPolicy ¶
KeyPeriodicPolicy returns the key of periodic policies.
func KeyStatusUpdateRetryQueue ¶
KeyStatusUpdateRetryQueue returns the key of status change retrying queue
func KeyUpstreamJobAndExecutions ¶
KeyUpstreamJobAndExecutions returns the key for persisting executions.
func RedisKeyLastPeriodicEnqueue ¶
RedisKeyLastPeriodicEnqueue returns key of timestamp if last periodic enqueue.
func RedisKeyScheduled ¶
RedisKeyScheduled returns key of scheduled job.
func RedisNamespacePrefix ¶
RedisNamespacePrefix ... Same with 'KeyNamespacePrefix', only for compatibility.
func ReleaseLock ¶
ReleaseLock releases the acquired lock