retrieve

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 13, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package retrieve contains the retrieve action.

This action retrieves data from remote storage and places them in prescribed directories locally.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunOnceWithUnpacking

func RunOnceWithUnpacking(session *actions.Session, writer *StatusWriter,
	start hour.Hour, end hour.Hour, targetDStore storage.WritableDStore) error

RunOnceWithUnpacking retrieves remote data, unpacks the archive, and stores it locally.

func RunOnceWithoutUnpacking

func RunOnceWithoutUnpacking(session *actions.Session, writer *StatusWriter,
	start hour.Hour, end hour.Hour, targetAStore storage.WritableAStore) error

RunOnceWithoutUnpacking retrieves remote data and stores it locally without unpacking the archives. That is, the compressed archive files are just stored.

Types

type StatusWriter

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

func NewStatusWriter

func NewStatusWriter(feeds []config.Feed) *StatusWriter

func (*StatusWriter) RecordDownload

func (w *StatusWriter) RecordDownload(feed *config.Feed, err error)

func (*StatusWriter) RecordFinished

func (w *StatusWriter) RecordFinished(feed *config.Feed)

func (*StatusWriter) SetNumArchives

func (w *StatusWriter) SetNumArchives(feed *config.Feed, n int)

Jump to

Keyboard shortcuts

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