uploader

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EmitFunc

type EmitFunc func(event interface{})

type PayloadUpload

type PayloadUpload struct {
	sync.Mutex
	Input               *model.InputVariable
	HaveVariant         bool
	Variant             *model.Variant
	NovariantStockPrice *model.NoVariantStockPrice
}

type TokopediaUploader

type TokopediaUploader struct {
	Api *api.TokopediaApi
	Ctx context.Context
}

func NewTokopediaUploader

func NewTokopediaUploader(ctx context.Context, apiclient *api.TokopediaApi) *TokopediaUploader

func (*TokopediaUploader) RunUploader

func (upload *TokopediaUploader) RunUploader(handlers ...UploadHandler) (*model.ProductAddResp, error)

func (*TokopediaUploader) UploadProduct

func (upload *TokopediaUploader) UploadProduct(payload *PayloadUpload) (*model.ProductAddResp, error)

type UploadHandler

type UploadHandler func(eventcore EmitFunc, tokpedup *TokopediaUploader, payload *PayloadUpload, sub *common_concept.Subscriber) error

Jump to

Keyboard shortcuts

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