config

package
v1.1.28 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Version = "0.0.1"

Functions

This section is empty.

Types

type Config

type Config interface {
	KeyConfig() string
}

type ConfigRepo

type ConfigRepo struct {
	// contains filtered or unexported fields
}

func NewConfigRepo

func NewConfigRepo(db *gorm.DB) *ConfigRepo

func (*ConfigRepo) GetConfig

func (repo *ConfigRepo) GetConfig(data Config) error

func (*ConfigRepo) Save

func (repo *ConfigRepo) Save(data Config) error

type RowConfigItem

type RowConfigItem struct {
	Key   string `gorm:"primaryKey;autoIncrement:false"`
	Value string
}

type ShopeeMapItem

type ShopeeMapItem struct {
	ShopeeID    int64 `gorm:"primaryKey;autoIncrement:false"  json:"shopee_id"`
	TokopediaID int   `json:"tokopedia_id"`
}

type ShopeeMapper

type ShopeeMapper struct {
	// contains filtered or unexported fields
}

func NewShopeeMapper

func NewShopeeMapper(db *gorm.DB) *ShopeeMapper

func (*ShopeeMapper) GetShopeeID added in v1.1.16

func (maper *ShopeeMapper) GetShopeeID(tokopediaID int) (*ShopeeMapItem, error)

func (*ShopeeMapper) GetTokopediaID

func (maper *ShopeeMapper) GetTokopediaID(shopeID int64) (*ShopeeMapItem, error)

type ShopeeMapperConfig

type ShopeeMapperConfig struct {
	UseMapper bool `json:"use_mapper"`
}

func (*ShopeeMapperConfig) KeyConfig

func (cfg *ShopeeMapperConfig) KeyConfig() string

Jump to

Keyboard shortcuts

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