database

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 31, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Database

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

func NewDatabase

func NewDatabase(dbPath string) (*Database, error)

func (*Database) Close

func (d *Database) Close() error

func (*Database) GetIndexerTaskState

func (d *Database) GetIndexerTaskState(zoneName string) IndexerTaskState

func (*Database) GetPostCrawlFilterTaskState

func (d *Database) GetPostCrawlFilterTaskState(zoneName string) PostCrawlFilterTaskState

func (*Database) GetPreCrawlFilterTaskState

func (d *Database) GetPreCrawlFilterTaskState(zoneName string) PreCrawlFilterTaskState

func (*Database) Purge

func (d *Database) Purge()

func (*Database) SaveIndexerTaskState

func (d *Database) SaveIndexerTaskState(zoneName string, state IndexerTaskState)

func (*Database) SavePostCrawlFilterTaskState

func (d *Database) SavePostCrawlFilterTaskState(zoneName string, state PostCrawlFilterTaskState)

func (*Database) SavePreCrawlFilterTaskState

func (d *Database) SavePreCrawlFilterTaskState(zoneName string, state PreCrawlFilterTaskState)

type IndexerTaskState

type IndexerTaskState struct {
	BIsFinished bool `json:"b_is_finished"`
	LineIndex   int  `json:"line_index"`
}

type PostCrawlFilterTaskState

type PostCrawlFilterTaskState struct {
	BIsFinished bool `json:"b_is_finished"`
	LineIndex   int  `json:"line_index"`
}

type PreCrawlFilterTaskState

type PreCrawlFilterTaskState struct {
	BIsFinished bool `json:"b_is_finished"`
	LineIndex   int  `json:"line_index"`
}

Jump to

Keyboard shortcuts

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