summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/lunny/levelqueue
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/lunny/levelqueue')
-rw-r--r--vendor/github.com/lunny/levelqueue/.gitignore3
-rw-r--r--vendor/github.com/lunny/levelqueue/README.md23
-rw-r--r--vendor/github.com/lunny/levelqueue/go.mod3
-rw-r--r--vendor/github.com/lunny/levelqueue/go.sum18
4 files changed, 47 insertions, 0 deletions
diff --git a/vendor/github.com/lunny/levelqueue/.gitignore b/vendor/github.com/lunny/levelqueue/.gitignore
new file mode 100644
index 0000000000..59a8bdee30
--- /dev/null
+++ b/vendor/github.com/lunny/levelqueue/.gitignore
@@ -0,0 +1,3 @@
+queue/
+queue_pop/
+queue_push/ \ No newline at end of file
diff --git a/vendor/github.com/lunny/levelqueue/README.md b/vendor/github.com/lunny/levelqueue/README.md
new file mode 100644
index 0000000000..3d9fc097b8
--- /dev/null
+++ b/vendor/github.com/lunny/levelqueue/README.md
@@ -0,0 +1,23 @@
+# levelqueue
+
+Level queue is a simple queue golang library base on go-leveldb.
+
+[![CircleCI](https://circleci.com/gh/lunny/levelqueue.svg?style=shield)](https://circleci.com/gh/lunny/levelqueue)
+[![codecov](https://codecov.io/gh/lunny/levelqueue/branch/master/graph/badge.svg)](https://codecov.io/gh/lunny/levelqueue)
+[![](https://goreportcard.com/badge/github.com/lunny/levelqueue)](https://goreportcard.com/report/github.com/lunny/levelqueue)
+
+## Installation
+
+```
+go get github.com/lunny/levelqueue
+```
+
+## Usage
+
+```Go
+queue, err := levelqueue.Open("./queue")
+
+err = queue.RPush([]byte("test"))
+
+data, err = queue.LPop()
+``` \ No newline at end of file
diff --git a/vendor/github.com/lunny/levelqueue/go.mod b/vendor/github.com/lunny/levelqueue/go.mod
new file mode 100644
index 0000000000..7d060fc099
--- /dev/null
+++ b/vendor/github.com/lunny/levelqueue/go.mod
@@ -0,0 +1,3 @@
+module github.com/lunny/levelqueue
+
+require github.com/syndtr/goleveldb v0.0.0-20190203031304-2f17a3356c66
diff --git a/vendor/github.com/lunny/levelqueue/go.sum b/vendor/github.com/lunny/levelqueue/go.sum
new file mode 100644
index 0000000000..5936aa865e
--- /dev/null
+++ b/vendor/github.com/lunny/levelqueue/go.sum
@@ -0,0 +1,18 @@
+github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db h1:woRePGFeVFfLKN/pOkfl+p/TAqKOfFu+7KPlMVpok/w=
+github.com/golang/snappy v0.0.0-20180518054509-2e65f85255db/go.mod h1:/XxbfmMg8lxefKM7IXC3fBNl/7bRcc72aCRzEWrmP2Q=
+github.com/hpcloud/tail v1.0.0/go.mod h1:ab1qPbhIpdTxEkNHXyeSf5vhxWSCs/tWer42PpOxQnU=
+github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
+github.com/onsi/ginkgo v1.7.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
+github.com/onsi/gomega v1.4.3/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
+github.com/syndtr/goleveldb v0.0.0-20190203031304-2f17a3356c66 h1:AwmkkZT+TucFotNCL+aNJ/0KCMsRtlXN9fs8uoOMSRk=
+github.com/syndtr/goleveldb v0.0.0-20190203031304-2f17a3356c66/go.mod h1:ZVVdQEZoIme9iO1Ch2Jdy24qqXrMMOU6lpPAyBWyWuQ=
+golang.org/x/net v0.0.0-20180906233101-161cd47e91fd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/fsnotify.v1 v1.4.7/go.mod h1:Tz8NjZHkW78fSQdbUxIjBTcgA1z1m8ZHf0WmKUhAMys=
+gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=