exporter

package
v0.0.0-...-7f31ccb Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CSVExporter

type CSVExporter struct {
	Dir      string
	FileName string
	Data     []matrix.RankData
	MetaData MetaData
}

func (*CSVExporter) Export

func (cex *CSVExporter) Export() error

func (*CSVExporter) GetDir

func (cx *CSVExporter) GetDir() string

func (*CSVExporter) GetFileName

func (cx *CSVExporter) GetFileName() string

func (*CSVExporter) Init

func (cx *CSVExporter) Init(ex ExporterOpts) *CSVExporter

type ExporterOpts

type ExporterOpts struct {
	Type             string
	Dir              string
	FileName         string
	Data             []matrix.RankData
	Domain           string
	CreatedAt        time.Time
	UserAgent        string
	NumOfURLsCrawled int
}

type JSONExporter

type JSONExporter struct {
	Dir      string
	FileName string
	Data     []matrix.RankData
	MetaData MetaData
}

func (*JSONExporter) Export

func (jex *JSONExporter) Export() error

func (*JSONExporter) GetDir

func (cx *JSONExporter) GetDir() string

func (*JSONExporter) GetFileName

func (cx *JSONExporter) GetFileName() string

func (*JSONExporter) Init

func (jx *JSONExporter) Init(ex ExporterOpts) *JSONExporter

type MetaData

type MetaData struct {
	Domain           string
	CreatedAt        time.Time
	UserAgent        string
	NumOfURLsCrawled int
}

type RexOpts

type RexOpts struct {
	Type     string
	Dir      string
	FileName string
}

Jump to

Keyboard shortcuts

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