You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
bog/dataswamp/namespace/entities.go

26 lines
578 B
Go

package namespace
import (
"errors"
"time"
)
type Namespace struct {
ID int64
Name string
LastSeen time.Time
AllowanceDuration time.Duration
FileQuota FileSizeQuota
Download FileStat
Upload FileStat
}
var (
ErrDuplicate = errors.New("record already exists")
ErrExceedQuota = errors.New("file too large")
ErrQuotaInvalid = errors.New("quota invalid")
ErrNotExists = errors.New("row not exists")
ErrUpdateFailed = errors.New("update failed")
ErrDeleteFailed = errors.New("delete failed")
)