x: within.website/x/discord/cadeybot/znc Index | Files

package znc

import "within.website/x/discord/cadeybot/znc"

Index

Package Files

znc.go

Variables

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

type LogMessage Uses

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

LogMessage is an individual log message scraped from ZNC logs.

type Reader Uses

type Reader struct {
    S *bufio.Scanner
}

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

func (Reader) ReadOldLine Uses

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

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

Package znc imports 4 packages (graph). Updated 2019-06-14. Refresh now. Tools for package owners.