uploader

package
v1.1.72 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 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
}

func NewPayloadUpload added in v1.1.61

func NewPayloadUpload() *PayloadUpload

func (*PayloadUpload) GetProductAddVar added in v1.1.61

func (payload *PayloadUpload) GetProductAddVar() *model.ProductAddVar

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