znc

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2023 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrFailedFilter is returned when the znc message fails the matching filter.
	ErrFailedFilter = errors.New("znc: failed filter function")
)

Functions

This section is empty.

Types

type LogMessage

type LogMessage struct {
	Sent   time.Time
	Sender string
	Body   string
}

LogMessage is an individual log message scraped from ZNC logs.

type Reader

type Reader struct {
	S *bufio.Scanner
}

Reader reads IRC log lines from a given io.Reader.

func (Reader) ReadOldLine

func (r Reader) ReadOldLine() (*LogMessage, error)

ReadOldLine does what you'd expect. Expects old style ZNC logs.

Jump to

Keyboard shortcuts

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