Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrBadFormat = errors.New("bad format") ErrReserveTimeout = errors.New("reserve timeout") ErrDeadlineSoon = errors.New("deadline soon") ErrNotFound = errors.New("not found") ErrNotIgnored = errors.New("not ignored") )
View Source
var MissingLineEnd = errors.New("expected crlf")
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface { Put(pri uint64, delay uint64, ttr uint64, data []byte) (uint64, bool, error) Use(tube string) (string, error) Reserve(timeout int64) (uint64, []byte, error) ReserveByID(id uint64) (uint64, []byte, error) Delete(id uint64) error Release(id uint64, pri uint64, delay uint64) error Bury(id uint64, pri uint64) error Touch(id uint64) error Watch(tube string) (int, error) Ignore(tube string) (int, error) }
Click to show internal directories.
Click to hide internal directories.