backend_queue.go 286 B

123456789101112
  1. package nsqd
  2. // BackendQueue represents the behavior for the secondary message
  3. // storage system
  4. type BackendQueue interface {
  5. Put([]byte) error
  6. ReadChan() <-chan []byte // this is expected to be an *unbuffered* channel
  7. Close() error
  8. Delete() error
  9. Depth() int64
  10. Empty() error
  11. }