repo

package
v1.1.56 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AkunItem

type AkunItem struct {
	AkunUploadStatus
	Username     string `json:"username" gorm:"primarykey"`
	Password     string `json:"password"`
	Secret       string `json:"secret"`
	Markup       string `json:"markup"`
	Spin         string `json:"spin"`
	Collection   string `json:"collection"`
	Hastag       string `json:"hastag"`
	TitlePattern string `json:"title_pattern"`
}

type AkunRepo

type AkunRepo struct {
	DB *gorm.DB
}

func NewAkunRepo

func NewAkunRepo(db *gorm.DB) *AkunRepo

type AkunUploadIterator

type AkunUploadIterator struct {
	sync.Mutex
	// contains filtered or unexported fields
}

func NewAkunUploadIterator

func NewAkunUploadIterator(db *gorm.DB) *AkunUploadIterator

func (*AkunUploadIterator) DeactiveAll

func (iter *AkunUploadIterator) DeactiveAll() error

func (*AkunUploadIterator) Get

func (iter *AkunUploadIterator) Get() (akun *AkunItem, updateinc func(count int, err error) error, finish func() error, err error)

func (*AkunUploadIterator) GetStatus

func (iter *AkunUploadIterator) GetStatus() (*UploadStatus, error)

func (*AkunUploadIterator) InProcessCount

func (iter *AkunUploadIterator) InProcessCount() (int64, error)

func (*AkunUploadIterator) Reset

func (iter *AkunUploadIterator) Reset() error

type AkunUploadStatus

type AkunUploadStatus struct {
	LimitUpload int    `json:"limit_upload"`
	CountUpload int    `json:"count_upload"`
	Active      bool   `json:"active_upload"`
	Lastup      int64  `json:"lastup"`
	InUpload    bool   `json:"in_upload"`
	LastError   string `json:"last_error"`
}

type BaseInterface added in v1.0.1

type BaseInterface interface {
	Path(item ...string) string
}

type CategoryRepo added in v1.0.1

type CategoryRepo struct {
	Data *api.CategoryAllListLiteRes
	// contains filtered or unexported fields
}

func NewCategoryRepo added in v1.0.1

func NewCategoryRepo(base BaseInterface) *CategoryRepo

func (*CategoryRepo) Get added in v1.0.1

func (*CategoryRepo) Save added in v1.0.1

func (repo *CategoryRepo) Save() error

func (*CategoryRepo) UpdateCateg added in v1.0.1

func (repo *CategoryRepo) UpdateCateg(payload *UpdateTopedCategoryPayload) error

type ProductAggregateIpml added in v1.1.16

type ProductAggregateIpml struct {
	Collection *mongo.Collection
}

func (*ProductAggregateIpml) IterCategory added in v1.1.16

func (agg *ProductAggregateIpml) IterCategory(namespace string, handler func(tokopediaID int, count int, name []string) error) error

type TopedAggregateCategory added in v1.1.16

type TopedAggregateCategory interface {
	IterCategory(namespace string, handler func(tokopediaID int, count int, name []string) error) error
}

type UpdateTopedCategoryPayload added in v1.0.1

type UpdateTopedCategoryPayload struct {
	Username string `json:"username" form:"username"`
	Password string `json:"password" form:"password"`
	Secret   string `json:"secret" form:"secret"`
}

type UploadStatus

type UploadStatus struct {
	AkunCount   int `json:"akun_count"`
	CountUpload int `json:"count_upload"`
	LimitUpload int `json:"limit_upload"`
}

Jump to

Keyboard shortcuts

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