18 lines
256 B
Go
18 lines
256 B
Go
|
package backends
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
"time"
|
||
|
)
|
||
|
|
||
|
type Metadata struct {
|
||
|
DeleteKey string
|
||
|
Sha256sum string
|
||
|
Mimetype string
|
||
|
Size int64
|
||
|
Expiry time.Time
|
||
|
ArchiveFiles []string
|
||
|
}
|
||
|
|
||
|
var BadMetadata = errors.New("Corrupted metadata.")
|