httplog

package
Version: v2.0.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: GPL-3.0 Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpLog

type HttpLog struct {
	Buffer []Message
	Len    int
	Line   int
	L      sync.Mutex
}

func NewHttpLog

func NewHttpLog(sz int) HttpLog

func (*HttpLog) Add

func (tl *HttpLog) Add(s Message)

func (*HttpLog) Shift

func (tl *HttpLog) Shift(e Message)

type Message

type Message struct {
	Group     string
	Level     string
	Timestamp string
	Text      string
}

Source Files

Jump to

Keyboard shortcuts

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