fetcher

package
v0.0.0-...-a47a91a Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fetcher

type Fetcher struct {
	*runtime.Config
	ConfigMutex sync.Mutex
	// contains filtered or unexported fields
}

func NewFetcher

func NewFetcher(config *runtime.Config, db database.Connection) *Fetcher

func (*Fetcher) Start

func (f *Fetcher) Start()

func (*Fetcher) Stop

func (f *Fetcher) Stop()

type Status

type Status struct {
	URL             string        `json:"url"`
	Name            string        `json:"name"`
	Error           string        `json:"error,omitempty"`
	Timestamp       jsontime.Time `json:"timestemp"`
	NodesCount      int           `json:"nodes_count"`
	NodesSkipCount  int           `json:"nodes_skip_count"`
	NeighboursCount int           `json:"neighbours_count"`
	LinksCount      int           `json:"links_count"`
}

Jump to

Keyboard shortcuts

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