{"modulePath":"github.com/wavetermdev/waveterm","version":"v0.14.5","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package logview\n\n## Constants\n\n```go\nconst BufSize = 256 * 1024\n```\n\n```go\nconst MaxLineSize = 1024\n```\n\n## Variables\n\n```go\nvar ErrBOF = errors.New(\"beginning of file\")\n```\n\n## Types\n\n```go\ntype LinePtr struct {\n\tOffset      int64\n\tRealLineNum int64\n\tLineNum     int64\n}\n```\n\n```go\ntype LogView struct {\n\tFile     *os.File\n\tMultiBuf *MultiBufferByteGetter\n\tMatchRe  *regexp.Regexp\n}\n```\n\n```go\nfunc MakeLogView(file *os.File) *LogView\n```\n\n```go\nfunc (lv *LogView) Close()\n```\n\n```go\nfunc (lv *LogView) FirstLinePtr() (*LinePtr, error)\n```\n\n```go\nfunc (lv *LogView) LastLinePtr(linePtr *LinePtr) (*LinePtr, error)\n```\n\n```go\nfunc (lv *LogView) Move(linePtr *LinePtr, offset int) (int, *LinePtr, error)\n```\n\n```go\nfunc (lv *LogView) NextLinePtr(linePtr *LinePtr) (*LinePtr, error)\n```\n\n```go\nfunc (lv *LogView) PrevLinePtr(linePtr *LinePtr) (*LinePtr, error)\n```\n\n```go\nfunc (lv *LogView) ReadLineData(linePtr *LinePtr) ([]byte, error)\n```\n\n```go\nfunc (lv *LogView) ReadWindow(linePtr *LinePtr, winSize int) ([][]byte, error)\n```\n\n```go\ntype MultiBufferByteGetter struct {\n\tFile    *os.File\n\tOffset  int64\n\tEOF     bool\n\tBuffers [][]byte\n\tBufSize int64\n}\n```\n\n```go\nfunc MakeMultiBufferByteGetter(file *os.File, bufSize int64) *MultiBufferByteGetter\n```\n\n```go\nfunc (mb *MultiBufferByteGetter) GetByte(offset int64) (byte, error)\n```\n\n```go\nfunc (mb *MultiBufferByteGetter) NextLine(offset int64) (int64, error)\n```\n\n```go\nfunc (mb *MultiBufferByteGetter) PrevLine(offset int64) (int64, error)\n```\n\n","path":"github.com/wavetermdev/waveterm/pkg/util/logview","name":"logview","synopsis":"","isRedistributable":true}
