Documentation
¶
Overview ¶
Persistent queue library designed for single process thread-safe job queue where data loss is not an option at cost of speed.
Index ¶
Constants ¶
View Source
const OnlyForTesting = "\x00"
Variables ¶
View Source
var ( ErrClosed = fmt.Errorf("pq is closed") ErrInvalidKey = fmt.Errorf("pq storage key invalid") )
Functions ¶
func IsCorrupted ¶
Types ¶
type Queue ¶
type Queue struct {
// contains filtered or unexported fields
}
func (*Queue) DeletePush ¶ added in v0.10.0
Atomic Delete+Push
func (*Queue) MarshalPush ¶
func (q *Queue) MarshalPush(item encoding.BinaryMarshaler) error
Click to show internal directories.
Click to hide internal directories.