func OptStream(stream bool) Option {
	return func(rm *ReadManager) error {
		rm.stream = stream
		return nil
	}
}
OptStream sets the flag to stream the logs. (do not close the connection)
package reader
import (
	"context"
	"fmt"
	"net/http"
	"time"
)
type Option func(*ReadManager) error
func OptLines(n int) Option {
	return func(rm *ReadManager) error {
		rm.readLimit = n
		return nil
	}
}
func OptSkip(n int) Option {
	return func(rm *ReadManager) error {
		rm.skip = n
		return nil
	}
}
func OptFile(f string) Option {
	return func(rm *ReadManager) error {
		rm.file = f
		return nil
	}
}
func OptHeaders(h http.Header) Option {
	return func(rm *ReadManager) error {
		rm.header = h
		return nil
	}
}
func OptReadDirection(r ReadDirection) Option {
	return func(rm *ReadManager) error {
		rm.readDirection = r
		return nil
	}
}