Skip to content

qustavo/goku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

goku Build Status GoDoc

Idiomatic queues for different providers.
Goku tries to unify queue interaction (currently only SQS is supported only), by using channels.

Usage

First, you need to initialize the library, specifying a provider, in this case sqs_provider is a goamz/SQS instance.

q := goku.NewQueue(
	goku.Reader(sqs_provider),
	goku.Writer(sqs_provider),
)

goku.Queue will expose two channels, one for reading messages Sender(), and one for writing messages Receiver().

After that, you should be able to exchange messages with the queue as follow:

q.Receiver() <- "Message"
msg := <-q.Sender()

For more information, please read the example.

About

Idiomatic queues for different providers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages