mirror of
https://github.com/go-gitea/gitea.git
synced 2024-09-06 11:29:30 +02:00
* Vendor: update gitea.com/macaron/session to a177a270 * make vendor * Vendor: update gitea.com/macaron/macaron to 0db5d458 * make vendor * Vendor: update gitea.com/macaron/cache to 905232fb * make vendor * Vendor: update gitea.com/macaron/i18n to 4ca3dd0c * make vendor * Vendor: update gitea.com/macaron/gzip to efa5e847 * make vendor * Vendor: update gitea.com/macaron/captcha to e8597820 * make vendor
50 lines
656 B
Go
Vendored
50 lines
656 B
Go
Vendored
package goleveldb
|
|
|
|
import (
|
|
"github.com/syndtr/goleveldb/leveldb/iterator"
|
|
)
|
|
|
|
type Iterator struct {
|
|
it iterator.Iterator
|
|
}
|
|
|
|
func (it *Iterator) Key() []byte {
|
|
return it.it.Key()
|
|
}
|
|
|
|
func (it *Iterator) Value() []byte {
|
|
return it.it.Value()
|
|
}
|
|
|
|
func (it *Iterator) Close() error {
|
|
if it.it != nil {
|
|
it.it.Release()
|
|
it.it = nil
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (it *Iterator) Valid() bool {
|
|
return it.it.Valid()
|
|
}
|
|
|
|
func (it *Iterator) Next() {
|
|
it.it.Next()
|
|
}
|
|
|
|
func (it *Iterator) Prev() {
|
|
it.it.Prev()
|
|
}
|
|
|
|
func (it *Iterator) First() {
|
|
it.it.First()
|
|
}
|
|
|
|
func (it *Iterator) Last() {
|
|
it.it.Last()
|
|
}
|
|
|
|
func (it *Iterator) Seek(key []byte) {
|
|
it.it.Seek(key)
|
|
}
|