{"modulePath":"github.com/Cosin/framework","version":"v0.0.0-20200411092139-678c32f7526f","isLatest":true,"isStandardLibrary":false,"goos":"linux","goarch":"amd64","docs":"# package queue\n\n## Types\n\n```go\ntype BackendQueue interface {\n\tPut([]byte) error\n\tReadChan() chan []byte // this is expected to be an *unbuffered* channel\n\tClose() error\n\tDelete() error\n\tDepth() int64\n\tEmpty() error\n}\n```\nBackendQueue represents the behavior for the secondary message storage system\n\n```go\nfunc NewDiskQueue(name string, dataPath string, maxBytesPerFile int64,\n\tminMsgSize int32, maxMsgSize int32,\n\tsyncEvery int64, syncTimeout time.Duration, readBufferSize int) BackendQueue\n```\nNewDiskQueue instantiates a new instance of diskQueue, retrieving metadata from the filesystem and starting the read ahead goroutine\n\n","path":"github.com/Cosin/framework/modules/queue/disk_queue","name":"queue","synopsis":"","isRedistributable":true}
