refactor(storage): standardize size limits to use GB units
This commit is contained in:
@@ -27,10 +27,10 @@ const (
|
||||
SettingRenewOnDownloadEnabled = "renew_on_download_enabled"
|
||||
SettingDefaultGuestExpirySecs = "default_guest_expiry_seconds"
|
||||
SettingMaxGuestExpirySecs = "max_guest_expiry_seconds"
|
||||
SettingGlobalMaxFileSizeBytes = "global_max_file_size_bytes"
|
||||
SettingGlobalMaxBoxSizeBytes = "global_max_box_size_bytes"
|
||||
SettingDefaultUserMaxFileBytes = "default_user_max_file_size_bytes"
|
||||
SettingDefaultUserMaxBoxBytes = "default_user_max_box_size_bytes"
|
||||
SettingGlobalMaxFileSizeBytes = "global_max_file_size_gb"
|
||||
SettingGlobalMaxBoxSizeBytes = "global_max_box_size_gb"
|
||||
SettingDefaultUserMaxFileBytes = "default_user_max_file_size_gb"
|
||||
SettingDefaultUserMaxBoxBytes = "default_user_max_box_size_gb"
|
||||
SettingSessionTTLSeconds = "session_ttl_seconds"
|
||||
SettingBoxPollIntervalMS = "box_poll_interval_ms"
|
||||
SettingThumbnailBatchSize = "thumbnail_batch_size"
|
||||
@@ -41,10 +41,11 @@ const (
|
||||
type SettingType string
|
||||
|
||||
const (
|
||||
SettingTypeBool SettingType = "bool"
|
||||
SettingTypeInt64 SettingType = "int64"
|
||||
SettingTypeInt SettingType = "int"
|
||||
SettingTypeText SettingType = "text"
|
||||
SettingTypeBool SettingType = "bool"
|
||||
SettingTypeInt64 SettingType = "int64"
|
||||
SettingTypeInt SettingType = "int"
|
||||
SettingTypeText SettingType = "text"
|
||||
SettingTypeSizeGB SettingType = "size_gb"
|
||||
)
|
||||
|
||||
type SettingDefinition struct {
|
||||
|
||||
Reference in New Issue
Block a user