2019-02-19 15:39:39 +01:00
|
|
|
// Copyright 2019 Lunny Xiao. All rights reserved.
|
|
|
|
// Use of this source code is governed by a MIT-style
|
|
|
|
// license that can be found in the LICENSE file.
|
|
|
|
|
|
|
|
package levelqueue
|
|
|
|
|
|
|
|
import "errors"
|
|
|
|
|
|
|
|
var (
|
2020-02-03 00:19:58 +01:00
|
|
|
// ErrNotFound means no elements in queue
|
2019-02-19 15:39:39 +01:00
|
|
|
ErrNotFound = errors.New("no key found")
|
2020-02-03 00:19:58 +01:00
|
|
|
|
|
|
|
ErrAlreadyInQueue = errors.New("value already in queue")
|
2019-02-19 15:39:39 +01:00
|
|
|
)
|