README ¶ diskqueue diskqueue forked from NSQ.io Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type DiskQueue func New(opts Options) DiskQueue type Options Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type DiskQueue ¶ type DiskQueue interface { Put([]byte) error ReadChan() chan []byte // this is expected to be an *unbuffered* channel Close() error Delete() error Depth() int64 Empty() error } DiskQueue interface for disk queue func New ¶ func New(opts Options) DiskQueue New instantiates an instance of diskQueue, retrieving metadata from the filesystem and starting the read ahead goroutine type Options ¶ added in v1.1.0 type Options struct { Name string DataPath string MaxBytesPerFile int64 MinMsgSize int32 MaxMsgSize int32 SyncEvery int64 SyncTimeout time.Duration Logger sugar.Logger } Options disk queue options Source Files ¶ diskqueue.go Click to show internal directories. Click to hide internal directories.