dump

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dump

type Dump struct {
	// contains filtered or unexported fields
}

func NewDump

func NewDump(props *Props) (*Dump, error)

func (*Dump) DumpBookmark

func (d *Dump) DumpBookmark(ctx context.Context, req DumpRequest) error

func (*Dump) Exists

func (d *Dump) Exists(href string) (bool, error)

func (*Dump) Parse

func (d *Dump) Parse(body, href string) *rw.ReadabilityResult

func (*Dump) Run

func (d *Dump) Run(ctx context.Context, force bool) error

func (*Dump) Save

func (d *Dump) Save(b map[string]string) error

type DumpRequest

type DumpRequest struct {
	Href, Folder, OriginalTitle string
	Force                       bool
}

type Props

type Props struct {
	Logger          *logger.Logger
	PoolSize        int
	HttpLoader      *dl.HttpInstance
	ChromeLoader    *dl.ChromeInstance
	Bm              bookmarker.Bookmarker
	UserAgentStream *ua.RandomStream
	Db              *badger.DB
}

Jump to

Keyboard shortcuts

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