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 SawmillServer ¶
type SawmillServer struct { TmplFS fs.FS StaticFS fs.FS LogsFS fs.FS Trackers map[string]*files.FileTracker 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.