Skip to content

aint/go-sqs-poller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-sqs-poller

go-sqs-poller

build Go Report Card

GoLang SQS Queue Poller using the AWS SDK v2. Released under the MIT License.

Motivation

This package was created to provide a convenient way to poll AWS SQS. It implements a simple configurable worker which could be used through a worker pool.

About

This is a detached fork of h2ik/go-sqs-poller with the following changes:

  • use AWS golang SDK V2
  • include message user attributes [MessageAttributeNames]
  • improved logging (deleted log.Println, only informative debug and error logging)
  • option to disable error logging of a handler function
  • redesign errors
  • ability to change a visibility timeout
  • update project structure
  • example wih a worker pool
  • check compatability with logrus and zap loggers

Quick Start:

Installation

$ go get github.com/aint/go-sqs-poller

Usage

Check out the cmd/example-worker/main.go for an example of how to use the worker.