logic

package
v0.0.0-...-cae3fd7 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2017 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ImportRemoteFiles

func ImportRemoteFiles(pgxClient *database.PgxClient, remoteFiles sirene.RemoteFiles, dPath string) error

ImportRemoteFiles is the way to remote files to database

func NewTracker

func NewTracker(pgxClient *database.PgxClient) *track

newTracker returns a new track

func ResetDatabase

func ResetDatabase(pgxClient *database.PgxClient) error

ResetDatabase truncates all database tables

Types

type CSVImports

type CSVImports []*sirene.CSVImport

CSVImports is a slice of pointer to CSVImport

type Crontab

type Crontab struct {
	PgxClient *database.PgxClient
	Config    conf.Crontab
}

func (*Crontab) Start

func (ct *Crontab) Start()

StartCrontab run Daily function every few hours

type Tracker

type Tracker interface {
	Save(filename string, isSuccess bool, err string) error
	Truncate() error
}

Tracker is an interface used to track success and errors

Jump to

Keyboard shortcuts

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