webtail

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2015 License: MIT Imports: 11 Imported by: 0

README

go-webtail

go porting for webtail(https://github.com/r7kamura/webtail)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Line

type Line struct {
	Text   string    `json:"text"`
	Time   time.Time `json:"time"`
	Number int64     `json:"number"`
}

type Tail

type Tail struct {
	// BufferLines is buffer size for play back
	BufferLines int

	// PlayBackLines is the number of lines for auto play back
	PlayBackLines int
	// contains filtered or unexported fields
}

func NewTail

func NewTail(t *tail.Tail) (*Tail, error)

func NewTailFile

func NewTailFile(filename string) (*Tail, error)

func NewTailReader

func NewTailReader(reader io.Reader) (*Tail, error)

func (*Tail) FollowHandler

func (t *Tail) FollowHandler(ws *websocket.Conn)

func (*Tail) TailHandler added in v0.0.2

func (t *Tail) TailHandler(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL