Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrExited = errors.New("diskqueue has been exited")
)
Functions ¶
This section is empty.
Types ¶
type DiskQueue ¶
type DiskQueue interface { Len() int64 Push([]byte) error Pop() chan []byte Clear() error Close() error DeleteAndExit() error }
func NewDiskQueue ¶
type Option ¶
type Option func(*diskQueue)
func WithDataPath ¶
func WithMaxBytesPerFile ¶
func WithMaxMsgSize ¶
func WithMinMsgSize ¶
func WithSyncEvery ¶
func WithSyncTimeout ¶
Click to show internal directories.
Click to hide internal directories.