Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var SawmillStaticFSDir = files.NewSubdirectoryFS(staticFS, "embeds/static")
View Source
var SawmillTemplateFS = files.NewSubdirectoryFS(staticFS, "embeds/templates")
View Source
var SawmillTemplateHandler = handlers. NewFSTemplateHandler(SawmillTemplateFS)
Functions ¶
This section is empty.
Types ¶
type FSLineTracker ¶ added in v0.0.20
type FSLineTracker struct { FS fs.FS Path string Content []string LastWriteTime time.Time // contains filtered or unexported fields }
func NewFSLineTracker ¶ added in v0.0.20
func NewFSLineTracker(fs fs.FS, filepath string) *FSLineTracker
func (*FSLineTracker) Refresh ¶ added in v0.0.20
func (f *FSLineTracker) Refresh() error
type SawmillServer ¶
type SawmillServer struct { TmplFS fs.FS StaticFS fs.FS LogsFS fs.FS Trackers map[string]*FSLineTracker SelectedFiles []string Query string CurrentLines []string Log *slog.Logger }
func NewSawmillServer ¶
func (*SawmillServer) Events ¶
func (s *SawmillServer) Events() []LogLine
func (*SawmillServer) ExecuteQuery ¶
func (s *SawmillServer) ExecuteQuery(query string) error
func (*SawmillServer) Paths ¶
func (s *SawmillServer) Paths() []string
func (*SawmillServer) RegisterRoutes ¶
func (s *SawmillServer) RegisterRoutes(r *mux.Router)
func (*SawmillServer) UpdateSelection ¶
func (s *SawmillServer) UpdateSelection(selected []string) error
Click to show internal directories.
Click to hide internal directories.