model

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resources

type Resources struct {
	WebResourceMIMEType         string `plist:"WebResourceMIMEType"`
	WebResourceTextEncodingName string `plist:"WebResourceTextEncodingName"`
	WebResourceURL              string `plist:"WebResourceURL"`
	WebResourceFrameName        string `plist:"WebResourceFrameName"`
	WebResourceData             []byte `plist:"WebResourceData"`
}

type WebArchive

type WebArchive struct {
	WebMainResources    *Resources    `plist:"WebMainResource"`
	WebSubResources     []*Resources  `plist:"WebSubresources"`
	WebSubframeArchives []*WebArchive `plist:"WebSubframeArchives"`
	// contains filtered or unexported fields
}

func (*WebArchive) Doc

func (w *WebArchive) Doc(decorate bool) (*goquery.Document, error)

func (*WebArchive) ExtractResources

func (w *WebArchive) ExtractResources(dir string) (map[string]string, error)

func (*WebArchive) FindResource

func (w *WebArchive) FindResource(ref string) (res *Resources, exist bool)

func (*WebArchive) From

func (w *WebArchive) From(warc string) (err error)

func (*WebArchive) PatchRef

func (w *WebArchive) PatchRef(ref string) string

Jump to

Keyboard shortcuts

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