Documentation
¶
Overview ¶
Package importdata restores a Backup in one transaction. It only adds: an application whose id the base already has (live or in the trash) is left as it is, with its history, so importing twice or into a used base is safe.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Result ¶
type Result struct {
Added int `json:"added"`
Deleted int `json:"deleted"`
Skipped int `json:"skipped"`
Failed []domain.BatchFailure `json:"failed,omitempty" binding:"optional"`
}
Result counts what was added and lists what was refused: Failed holds the invalid applications (Index is the place in the file's applications, ID an item of its trash), Skipped is how many the base already had.