dump

package
v0.0.0-...-62d330b Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSkip = errors.New("skip")

Functions

func New

func New(wikiURL, destDir, token string, force bool) (*dumper, error)

func NewClient

func NewClient(wikiURL, token string) (*dokuwiki.ClientWithResponses, error)

func NewDumper

func NewDumper(v *visitor, destDir string, force bool) (*dumper, error)

func NewVisitor

func NewVisitor(cl dokuwiki.ClientWithResponsesInterface, wikiURL string) (*visitor, error)

func NewWithClient

func NewWithClient(cl dokuwiki.ClientWithResponsesInterface, wikiURL, destDir string, force bool) (*dumper, error)

Types

type Element

type Element struct {
	Children  []string
	HTML      string
	ID, Title string
	Revision  int
	// contains filtered or unexported fields
}

func (*Element) GetHTML

func (elt *Element) GetHTML(ctx context.Context) (io.Reader, error)

func (*Element) HRef

func (e *Element) HRef() string

func (*Element) ParseHTML

func (elt *Element) ParseHTML(ctx context.Context, r io.Reader) error

Jump to

Keyboard shortcuts

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