cycbuf

package
v0.0.0-...-9c23c6b Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2017 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cycbuf

type Cycbuf struct {
	// contains filtered or unexported fields
}

func New

func New() *Cycbuf

func (*Cycbuf) Add

func (cb *Cycbuf) Add(sum string, m *syslogd.Message)

func (*Cycbuf) AddString

func (cb *Cycbuf) AddString(str string, m *syslogd.Message)

func (*Cycbuf) Dump

func (cb *Cycbuf) Dump()

Dump is called on program exit or signal.

func (*Cycbuf) HttpLog

func (cb *Cycbuf) HttpLog(w http.ResponseWriter, r *http.Request)

HttpLog returns the last "max" messages of "md5" in json format.

func (*Cycbuf) HttpStream

func (cb *Cycbuf) HttpStream(ws *websocket.Conn)

func (*Cycbuf) Restore

func (cb *Cycbuf) Restore()

Restore is callled on program load.

Jump to

Keyboard shortcuts

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