{"modulePath":"github.com/redHJ/logkit","version":"v1.4.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package queue\n\n## Constants\n\n```go\nconst (\n\tStatusInit int32 = iota\n\tStatusClosed\n)\n```\n\n```go\nconst (\n\tFROM_NONE = iota\n\tFROM_DISK\n\tFROM_MEMORY\n)\n```\n\n## Functions\n\n```go\nfunc AtomicRename(sourceFile, targetFile string) error\n```\n\n## Types\n\n```go\ntype BackendQueue interface {\n\tName() string\n\tPut([]byte) error\n\tReadChan() \u003c-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 NewDirectQueue(name string) BackendQueue\n```\n\n```go\nfunc NewDiskQueue(name string, dataPath string, maxBytesPerFile int64,\n\tminMsgSize int32, maxMsgSize int32,\n\tsyncEveryWrite, syncEveryRead int64, syncTimeout time.Duration, writeLimit int,\n\tenableMemory bool, maxMemoryLength 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/redHJ/logkit/queue","name":"queue","synopsis":"","isRedistributable":true}
