usecases

package
v0.0.0-...-0697edd Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BulkImport

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

func NewBulkImport

func NewBulkImport(importer CompanyImporter) *BulkImport

func (*BulkImport) Do

func (m *BulkImport) Do(ctx context.Context) error

type CompanyImporter

type CompanyImporter interface {
	DoImport(_ context.Context) error
}

type CompanyStore

type CompanyStore interface {
	InsertCompany(_ context.Context, _ *company.Company) error
}

type InsertCompany

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

func NewInsertCompany

func NewInsertCompany(store CompanyStore) *InsertCompany

func (*InsertCompany) Do

func (m *InsertCompany) Do(ctx context.Context, data *company.Company) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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