internal

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2019 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Main

func Main(urlStr string, showData bool, showAll bool, limit int, processes int)

Types

type Adapter

type Adapter interface {
	Init(url string)
	FetchTables() (tables []table)
	FetchTableData(table table, limit int) ([]string, [][]string)
}

type FileAdapter added in v0.1.1

type FileAdapter interface {
	Init(url string)
	FetchFiles() (files []string)
	FindFileMatches(file string) ([][]string, int)
}

type LocalFileAdapter added in v0.1.1

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

func (LocalFileAdapter) FetchFiles added in v0.1.1

func (a LocalFileAdapter) FetchFiles() []string

func (LocalFileAdapter) FindFileMatches added in v0.1.1

func (a LocalFileAdapter) FindFileMatches(filename string) ([][]string, int)

TODO read metadata for certain file types

func (*LocalFileAdapter) Init added in v0.1.1

func (a *LocalFileAdapter) Init(url string)

type S3Adapter added in v0.1.1

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

func (S3Adapter) FetchFiles added in v0.1.1

func (a S3Adapter) FetchFiles() []string

func (S3Adapter) FindFileMatches added in v0.1.1

func (a S3Adapter) FindFileMatches(filename string) ([][]string, int)

func (*S3Adapter) Init added in v0.1.1

func (a *S3Adapter) Init(url string)

type SqlAdapter

type SqlAdapter struct {
	DB *sqlx.DB
}

func (SqlAdapter) FetchTableData

func (a SqlAdapter) FetchTableData(table table, limit int) ([]string, [][]string)

func (SqlAdapter) FetchTables

func (a SqlAdapter) FetchTables() (tables []table)

func (*SqlAdapter) Init

func (a *SqlAdapter) Init(url string)

Jump to

Keyboard shortcuts

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