reader

package
v0.0.0-...-baec932 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Visit

func Visit(options *VisitorOptions, callback func(page Page) error) (err error)

Types

type Contributor

type Contributor struct {
	Username string `xml:"username"`
	Id       int    `xml:"id"`
}

type Index

type Index struct {
	Offset int64
	Length int64
	Id     int64
	Title  string
}

type Page

type Page struct {
	Title    string   `xml:"title"`
	Id       int      `xml:"id"`
	Redirect string   `xml:"redirect"`
	Revision Revision `xml:"revision"`
}

type Revision

type Revision struct {
	Id          int         `xml:"id"`
	ParentId    int         `xml:"parentid"`
	Timestamp   string      `xml:"timestamp"`
	Contributor Contributor `xml:"contributor"`
	Comment     string      `xml:"comment"`
	Model       string      `xml:"model"`
	Format      string      `xml:"format"`
	Text        string      `xml:"text"`
	Sha1        string      `xml:"sha1"`
}

type VisitorOptions

type VisitorOptions struct {
	StreamFilename string
	IndexFilename  string
	Filter         *func(string) bool
}

Jump to

Keyboard shortcuts

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