Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct { TemplateDirectory string LogRepository *repository.LogRepository Watcher *watch.Watcher }
Handler handles requests
func (*Handler) HandleRead ¶
func (h *Handler) HandleRead(w http.ResponseWriter, r *http.Request)
HandleRead renders an HTML page with log lines according to the query in the request
func (*Handler) HandleWebSocket ¶
func (h *Handler) HandleWebSocket(w http.ResponseWriter, r *http.Request)
HandleWebSocket sends new log lines over a web socket
func (*Handler) HandleWrite ¶
func (h *Handler) HandleWrite(w http.ResponseWriter, r *http.Request)
HandleWrite writes a slog line for testing purposes
Click to show internal directories.
Click to hide internal directories.