Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ToPrettyJSON ¶
func ToPrettyJSON(o interface{}) string
Types ¶
type Item ¶
type Item struct { ID string `json:"id"` Name string `json:"name"` Status Status `json:"status"` Created int64 `json:"created"` Updated int64 `json:"updated"` CategoryID int `json:"category_id"` Price int `json:"price"` ItemCondition ItemCondition `json:"item_condition"` Attributes []string `json:"attributes"` }
type ItemCondition ¶
type ItemCondition int
const ( ItemConditionLikeNew ItemCondition = iota + 1 ItemConditionGood ItemConditionPoor ItemConditionOther )
type ItemsBatch ¶
type ItemsBatch struct { Size int Total int Items []*Item ForEachBatch func(totalItems int, items []*Item) error ConvertIDs map[string]int // key = UUID, value = int (attribute ID or option ID) // contains filtered or unexported fields }
func (*ItemsBatch) Add ¶
func (b *ItemsBatch) Add(rec, headers []string) error
func (*ItemsBatch) Flush ¶
func (b *ItemsBatch) Flush() error
Click to show internal directories.
Click to hide internal directories.