Skip to content

Commit

Permalink
Merge pull request #1 from TerrexTech/v1
Browse files Browse the repository at this point in the history
Add basic producer and consumer utils
  • Loading branch information
Jaskaranbir authored Aug 26, 2018
2 parents c8e19f3 + 6b477e3 commit d90cc17
Show file tree
Hide file tree
Showing 11 changed files with 1,529 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# IDE
.vscode
.history

# Glide
glide.lock
vendor
42 changes: 42 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
sudo: false

language: go

go:
- 1.10.3

# Only clone the most recent commit
git:
depth: 1

env:
global:
- DEP_VERSION="0.5.0"
- GOLANGCI_LINT_VERSION="1.9.3"

before_install:
# Download dep binary to $GOPATH/bin
- curl -L -s https://github.com/golang/dep/releases/download/v${DEP_VERSION}/dep-linux-amd64 -o $GOPATH/bin/dep
- chmod +x $GOPATH/bin/dep
# Download golangci-lint binary to $GOPATH/bin
- curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | bash -s -- -b $GOPATH/bin v${GOLANGCI_LINT_VERSION}

install:
- dep ensure

script:
- golangci-lint run -v
-E golint
-E interfacer
-E unconvert
-E dupl
-E goconst
-E gocyclo
-E maligned
-E misspell
-E lll
-E unparam
consumer/...
mocks/...
producer/...
- go test -v ./...
231 changes: 231 additions & 0 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 49 additions & 0 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Gopkg.toml example
#
# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md
# for detailed Gopkg.toml documentation.
#
# required = ["github.com/user/thing/cmd/thing"]
# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"]
#
# [[constraint]]
# name = "github.com/user/project"
# version = "1.0.0"
#
# [[constraint]]
# name = "github.com/user/project2"
# branch = "dev"
# source = "github.com/myfork/project2"
#
# [[override]]
# name = "github.com/x/y"
# version = "2.4.0"
#
# [prune]
# non-go = false
# go-tests = true
# unused-packages = true

[[override]]
source = "https://github.com/fsnotify/fsnotify/archive/v1.4.7.tar.gz"
name = "gopkg.in/fsnotify.v1"

[[constraint]]
name = "github.com/Shopify/sarama"
version = "~1.16.0"

[[constraint]]
name = "github.com/bsm/sarama-cluster"
version = "2.1.12"

[[constraint]]
name = "github.com/onsi/ginkgo"
version = "1.6.0"

[[constraint]]
name = "github.com/onsi/gomega"
version = "1.4.1"

[prune]
go-tests = true
unused-packages = true
Loading

0 comments on commit d90cc17

Please sign in to comment.