Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Import ¶
func Import(a ImportArgs)
Types ¶
type ChangeLogEntry ¶
type ChangeLogEntry struct {
ItemID string
Update struct {
Name string `json:"name,omitempty"`
Created int64 `json:"created,omitempty"`
Status Status `json:"status,omitempty"`
} `json:"update,omitempty"`
Insert *Item `json:"insert,omitempty"`
}
func CreateChangeLog ¶
func CreateChangeLog(a CreateChangeLogArgs) (changeLog []*ChangeLogEntry)
type CreateChangeLogArgs ¶
type ImportArgs ¶
type ItemCondition ¶
type ItemCondition int
const ( ItemConditionLikeNew ItemCondition = iota + 1 ItemConditionGood ItemConditionPoor ItemConditionOther )
type ItemNoDesc ¶
type ItemsBatch ¶
type ItemsBatch struct {
Size int
Total int
Items []*Item
ForEachBatch func(totalItems int, items []*Item) error
}
func (*ItemsBatch) Add ¶
func (b *ItemsBatch) Add(rec, headers []string) error
func (*ItemsBatch) Flush ¶
func (b *ItemsBatch) Flush() error
type ItemsNoDescBatch ¶
type ItemsNoDescBatch struct {
Size int
Total int
Items []*ItemNoDesc
ForEachBatch func(totalItems int, items []*ItemNoDesc) error
}
func (*ItemsNoDescBatch) Add ¶
func (b *ItemsNoDescBatch) Add(rec, headers []string) error
func (*ItemsNoDescBatch) Flush ¶
func (b *ItemsNoDescBatch) Flush() error
Click to show internal directories.
Click to hide internal directories.