This commit is contained in:
@@ -30,6 +30,7 @@ type Space struct {
|
||||
Bucket string `json:"bucket" yaml:"bucket"`
|
||||
MaxSize int64 `json:"maxSize" yaml:"maxSize"`
|
||||
Root string `json:"root" yaml:"root"`
|
||||
URLRoot string `json:"urlRoot" yaml:"urlRoot"`
|
||||
}
|
||||
|
||||
// Database is configuration for spaces.
|
||||
|
||||
@@ -63,6 +63,11 @@ func FileID() string {
|
||||
return ID("F", 16)
|
||||
}
|
||||
|
||||
// FileID generates a file ID.
|
||||
func FileUploadID() string {
|
||||
return ID("U", 24)
|
||||
}
|
||||
|
||||
func KeyID() string {
|
||||
return ID("K", 32)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user