Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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
Click to show internal directories.
Click to hide internal directories.