Tail [log]files via websocket
webtail is a web-service and golang package used for continious updated files publication via websocker to browser.
go get -v github.com/LeKovr/webtail/...See Latest release
Starting from 0.43.2 docker images are published at GitHub Packages, so use
docker pull ghcr.io/lekovr/webtail:latestSee docker-compose.yml for usage example.
v0.43.1 is the last version available at dockerhub.
package main import ( "github.com/LeKovr/webtail" ) func main() { wt, err := webtail.New(log, cfg) if err != nil { return } go wt.Run() defer wt.Close() // ... http.Handle("/tail", wt) }See also: app.go
Starting from v0.30 this code is based on gorilla/websocket chat example. See {client,hub}.go
The MIT License (MIT), see LICENSE.
Copyright (c) 2016-2023 Aleksey Kovrizhkin lekovr+webtail@gmail.com
