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.

        Source Files