github.com/nsqio/nsq@v1.3.0/nsqd/backend_queue.go (about)

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