Are you sure you want to delete this task? Once this task is deleted, it cannot be recovered.
|
5 years ago | |
---|---|---|
.. | ||
.drone.yml | 5 years ago | |
.gitignore | 5 years ago | |
LICENSE | 5 years ago | |
README.md | 5 years ago | |
error.go | 5 years ago | |
go.mod | 5 years ago | |
go.sum | 5 years ago | |
queue.go | 5 years ago |
Level queue is a simple queue golang library base on go-leveldb.
go get gitea.com/lunny/levelqueue
queue, err := levelqueue.Open("./queue")
err = queue.RPush([]byte("test"))
// pop an element from left of the queue
data, err = queue.LPop()
// if handle success, element will be pop, otherwise it will be keep
queue.LHandle(func(dt []byte) error{
return nil
})
No Description
Go SVG JavaScript Vue Roff other