Skip to content

hashrabbit/gokiq

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gokiq Build Status

Gokiq is a small library to easily enqueue Sidekiq jobs from Go.

Usage

import (
  "github.com/duosrx/gokiq"
  "github.com/garyburd/redigo/redis"
  "time"
)

// Create a Redis Pool first
pool := redis.NewPool(func() (redis.Conn, error) {
  c, err := redis.Dial("tcp", ":6379")
  if err != nil {
    return nil, err
  }
  return c, err
}, 3)

job := NewJob("HardWorder", "default", []string{"foo", "bar"})

// Enqueue immediately...
job.Enqueue(pool)

// ... or enqueue in the future
now := time.Now()
job.EnqueueAt(now, pool)

About

Enqueue Sidekiq jobs from Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Go 100.0%