Skip to content

xuyan2018/webtail

This branch is 34 commits behind LeKovr/webtail:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

bd7fe6f · Sep 10, 2022
Aug 9, 2022
Aug 8, 2022
Jan 28, 2021
Jan 26, 2021
Nov 13, 2021
Sep 10, 2022
Jan 23, 2021
Aug 8, 2022
Aug 9, 2022
Jan 12, 2021
Aug 9, 2022
Jan 26, 2022
Jan 26, 2022
Jan 28, 2021
Feb 8, 2021
Nov 14, 2021
Nov 14, 2021
Aug 8, 2022
Aug 8, 2022
Sep 29, 2021
Feb 1, 2021
Jan 28, 2021
Nov 14, 2021
Jan 28, 2021
Aug 8, 2022
Aug 9, 2022

Repository files navigation

webtail

Tail [log]files via websocket

English | Pусский


Go Reference GitHub Release Build Status GitHub license

codecov Test Coverage Maintainability GoCard

webtail is a web-service and golang package used for continious updated files publication via websocker to browser.

Ping stream sample

Install

go get -v github.com/LeKovr/webtail/...

Download binary

See Latest release

Docker

Starting from 0.43.2 docker images are published at GitHub Packages, so use

docker pull ghcr.io/lekovr/webtail:latest

See docker-compose.yml for usage example.

v0.43.1 is the last version available at dockerhub.

Use package in your service

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

Note about gorilla/websocket

Starting from v0.30 this code is based on gorilla/websocket chat example. See {client,hub}.go

License

The MIT License (MIT), see LICENSE.

Copyright (c) 2016-2021 Aleksey Kovrizhkin lekovr+webtail@gmail.com

About

Tail logfile via websocket

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 67.0%
  • JavaScript 17.0%
  • Makefile 9.9%
  • HTML 2.9%
  • CSS 1.7%
  • Dockerfile 1.5%