SizeReaderAt is an interface used to get a ReaderAt as well as the size of the underlying reader. Note that the size of the underlying reader should not change when using this interface.
| 43 | // SizeReaderAt is an interface used to get a ReaderAt as well as the size of the underlying reader. |
| 44 | // Note that the size of the underlying reader should not change when using this interface. |
| 45 | type SizeReaderAt interface { |
| 46 | io.ReaderAt |
| 47 | Size() int64 |
| 48 | } |
| 49 | |
| 50 | // NewTailReader scopes the passed in reader to just the last N lines passed in |
| 51 | func NewTailReader(ctx context.Context, r SizeReaderAt, reqLines int) (*io.SectionReader, int, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…