Documentation ¶
Index ¶
- func NewImport(opt ...ImportOptions) *importer
- type ImportOptions
- func WithCtx(ctx context.Context) ImportOptions
- func WithDataList(dataList interface{}) ImportOptions
- func WithFile(file multipart.File) ImportOptions
- func WithProcessFn(fn processFn) ImportOptions
- func WithSentNotifToSlack(sent bool, channel ...string) ImportOptions
- func WithTransaction(trx database.Transactions) ImportOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImport ¶
func NewImport(opt ...ImportOptions) *importer
Types ¶
type ImportOptions ¶
type ImportOptions func(reader *importer)
func WithCtx ¶ added in v2.11.0
func WithCtx(ctx context.Context) ImportOptions
func WithDataList ¶
func WithDataList(dataList interface{}) ImportOptions
func WithFile ¶
func WithFile(file multipart.File) ImportOptions
func WithProcessFn ¶
func WithProcessFn(fn processFn) ImportOptions
func WithSentNotifToSlack ¶ added in v2.11.7
func WithSentNotifToSlack(sent bool, channel ...string) ImportOptions
func WithTransaction ¶
func WithTransaction(trx database.Transactions) ImportOptions
Click to show internal directories.
Click to hide internal directories.