You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
629 B
23 lines
629 B
# levelqueue
|
|
|
|
Level queue is a simple queue golang library base on go-leveldb.
|
|
|
|
[](https://circleci.com/gh/lunny/levelqueue)
|
|
[](https://codecov.io/gh/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()
|
|
``` |