Skip to content

Commit

Permalink
Expose Namespace function.
Browse files Browse the repository at this point in the history
  • Loading branch information
benmanns committed May 22, 2014
1 parent ef78f6c commit c3c123b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions flags.go
Expand Up @@ -96,6 +96,13 @@ var (
isStrict bool
)

// Namespace returns the namespace flag for goworker. You
// can use this with the GetConn and PutConn functions to
// operate on the same namespace that goworker uses.
func Namespace() string {
return namespace
}

func init() {
flag.StringVar(&queuesString, "queues", "", "a comma-separated list of Resque queues")

Expand Down

0 comments on commit c3c123b

Please sign in to comment.