Skip to content

Commit b33272d

Browse files
committed
renamed project to okq
1 parent 0d3d13d commit b33272d

12 files changed

+27
-27
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
.goat
22
*.test
33
*.prof
4-
redeque
4+
okq

.go.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
path: github.com/mc0/redeque
2+
path: github.com/mc0/okq
33
deps:
44
- loc: github.com/fzzy/radix/redis
55
- loc: github.com/mediocregopher/flagconfig

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Redeque
1+
okQ
22
=======
33

44
A simple go-based reliable event queueing with at-least-once support.
@@ -9,7 +9,7 @@ This allows swapping connecting directly to the service from any redis client.
99
Commands
1010
--------
1111

12-
Redeque is modeled as a left-to-right queue. Clients submit jobs on the left
12+
OkQ is modeled as a left-to-right queue. Clients submit jobs on the left
1313
side of the queue (with `QLPUSH`, and consumers read off the right side (with
1414
`QRPOP`).
1515

clients/consumers.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import (
44
"github.com/mediocregopher/pubsubch"
55
"time"
66

7-
"github.com/mc0/redeque/config"
8-
"github.com/mc0/redeque/db"
9-
"github.com/mc0/redeque/log"
7+
"github.com/mc0/okq/config"
8+
"github.com/mc0/okq/db"
9+
"github.com/mc0/okq/log"
1010
)
1111

1212
// consumers are clients which have qregistered themselves as consuming some set

clients/consumers_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
. "testing"
88
"time"
99

10-
"github.com/mc0/redeque/db"
10+
"github.com/mc0/okq/db"
1111
)
1212

1313
func TestUpdateQueues(t *T) {

commands/commands.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import (
1010
"strings"
1111
"time"
1212

13-
"github.com/mc0/redeque/clients"
14-
"github.com/mc0/redeque/db"
13+
"github.com/mc0/okq/clients"
14+
"github.com/mc0/okq/db"
1515
)
1616

1717
var commandMap = map[string]func(*clients.Client, []string) error{

commands/commands_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import (
99
. "testing"
1010
"time"
1111

12-
"github.com/mc0/redeque/clients"
12+
"github.com/mc0/okq/clients"
1313
)
1414

1515
func readAndAssertStr(t *T, client *clients.Client, expected string) {

db/db.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import (
99
"github.com/fzzy/radix/redis"
1010
"strings"
1111

12-
"github.com/mc0/redeque/config"
13-
"github.com/mc0/redeque/log"
12+
"github.com/mc0/okq/config"
13+
"github.com/mc0/okq/log"
1414
)
1515

1616
// A pool of redis connections which can be read from asynchronously by anyone

db/db_scanner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package db
22

33
import (
44
"github.com/fzzy/radix/redis"
5-
"github.com/mc0/redeque/log"
5+
"github.com/mc0/okq/log"
66
)
77

88
type ScanResult struct {

log/log.go

+6-6
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ import (
88
"os"
99
"strings"
1010

11-
"github.com/mc0/redeque/config"
11+
"github.com/mc0/okq/config"
1212
)
1313

14-
type RedequeLogger struct {
14+
type OkQLogger struct {
1515
*log.Logger
1616
}
1717

@@ -20,7 +20,7 @@ const defaultFlags = log.LstdFlags
2020
// This is what all logging methods should be called on. We leave this public
2121
// and don't make wrappers around it so that the Lshortfile flag will work
2222
// (prints out file and line number of logs)
23-
var L RedequeLogger
23+
var L OkQLogger
2424

2525
func init() {
2626
var flags int
@@ -29,18 +29,18 @@ func init() {
2929
} else {
3030
flags = log.LstdFlags
3131
}
32-
L = RedequeLogger{log.New(os.Stdout, "", flags)}
32+
L = OkQLogger{log.New(os.Stdout, "", flags)}
3333
}
3434

35-
func (l *RedequeLogger) Debug(v ...interface{}) {
35+
func (l *OkQLogger) Debug(v ...interface{}) {
3636
if config.Debug {
3737
format := strings.Repeat("%s", len(v))
3838
s := fmt.Sprintf(format, v...)
3939
l.Output(2, s)
4040
}
4141
}
4242

43-
func (l *RedequeLogger) Debugf(format string, args ...interface{}) {
43+
func (l *OkQLogger) Debugf(format string, args ...interface{}) {
4444
if config.Debug {
4545
s := fmt.Sprintf(format, args...)
4646
l.Output(2, s)

restore/restore.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"github.com/fzzy/radix/redis"
88
"time"
99

10-
"github.com/mc0/redeque/db"
11-
"github.com/mc0/redeque/log"
10+
"github.com/mc0/okq/db"
11+
"github.com/mc0/okq/log"
1212
)
1313

1414
func init() {

server.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import (
77
"net"
88
"strings"
99

10-
"github.com/mc0/redeque/clients"
11-
"github.com/mc0/redeque/commands"
12-
"github.com/mc0/redeque/config"
13-
"github.com/mc0/redeque/log"
14-
_ "github.com/mc0/redeque/restore"
10+
"github.com/mc0/okq/clients"
11+
"github.com/mc0/okq/commands"
12+
"github.com/mc0/okq/config"
13+
"github.com/mc0/okq/log"
14+
_ "github.com/mc0/okq/restore"
1515
)
1616

1717
func main() {

0 commit comments

Comments
 (0)