zipcsv

package
v0.0.0-...-6a17d3c Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnexpectedStatusCode = errors.New("unexpected status code")

Functions

This section is empty.

Types

type Config

type Config struct {
	Name  string
	Step  string
	Table string
	URL   string
}

type Option

type Option func(*Processor)

func WithColumns

func WithColumns(columns []string) Option

func WithKeepDownload

func WithKeepDownload(keep bool) Option

type Processor

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

func New

func New(db *sqlx.DB, stepsService StepsService, config Config, opts ...Option) *Processor

func (*Processor) Run

func (p *Processor) Run(ctx context.Context) error

type StepsService

type StepsService interface {
	Execute(ctx context.Context, step string, fn func(context.Context) error) error
}

Jump to

Keyboard shortcuts

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