batch

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2020 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteFromFileFactory

func DeleteFromFileFactory(hdrMap map[int]string, objData []interface{}, keyName string) (string, error)

DeleteFromFileFactory produces objects from input file data

func DeleteProcessGSheet

func DeleteProcessGSheet(sheetID string, sheetrange string, attrMap map[string]string, keyName string) ([]string, error)

DeleteProcessGSheet does batch processing of Google Sheet input

func DeleteProcessTextFile

func DeleteProcessTextFile(filePath string, scanner *bufio.Scanner) ([]string, error)

DeleteProcessTextFile does batch processing of text input

func FromFileFactory

func FromFileFactory(callParams CallParams, hdrMap map[int]string, objData []interface{}) (interface{}, error)

FromFileFactory produces objects from input file data

func FromJSONFactory

func FromJSONFactory(callParam CallParams, jsonData string, attrMap map[string]string) (interface{}, error)

FromJSONFactory creates object from JSON data

func ProcessCSVFile

func ProcessCSVFile(callParams CallParams, filePath string, attrMap map[string]string) ([]interface{}, error)

ProcessCSVFile does batch processing of CSV input files

func ProcessGSheet

func ProcessGSheet(callParams CallParams, sheetID string, sheetrange string, attrMap map[string]string) ([]interface{}, error)

ProcessGSheet does batch processing of Google Sheet input

func ProcessJSON

func ProcessJSON(callParam CallParams, filePath string, scanner *bufio.Scanner, attrMap map[string]string) ([]interface{}, error)

ProcessJSON does batch processing of JSON file input

Types

type CallParams

type CallParams struct {
	CallType   int
	ObjectType int
}

CallParams holds batch call parameters

Jump to

Keyboard shortcuts

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