light modification
This commit is contained in:
@@ -66,8 +66,12 @@ const (
|
||||
GARANTED_STORAGE
|
||||
)
|
||||
|
||||
func PrivilegeStoragePricingStrategyList() []PrivilegeStoragePricingStrategy {
|
||||
return []PrivilegeStoragePricingStrategy{BASIC_STORAGE, GARANTED_ON_DELAY_STORAGE, GARANTED_STORAGE}
|
||||
}
|
||||
|
||||
func (t PrivilegeStoragePricingStrategy) String() string {
|
||||
return [...]string{"BASIC_STORAGE", "GARANTED_ON_DELAY_STORAGE", "GARANTED_STORAGE"}[t]
|
||||
return [...]string{"NO MEMORY HOLDING", "KEEPED ON MEMORY GARANTED DURING DELAY", "KEEPED ON MEMORY GARANTED"}[t]
|
||||
}
|
||||
|
||||
type StorageResourcePricingStrategy int
|
||||
@@ -80,6 +84,14 @@ const (
|
||||
PER_KB_STORED
|
||||
)
|
||||
|
||||
func StorageResourcePricingStrategyList() []StorageResourcePricingStrategy {
|
||||
return []StorageResourcePricingStrategy{PER_DATA_STORED, PER_TB_STORED, PER_GB_STORED, PER_MB_STORED, PER_KB_STORED}
|
||||
}
|
||||
|
||||
func (t StorageResourcePricingStrategy) String() string {
|
||||
return [...]string{"PER DATA STORED", "PER TB STORED", "PER GB STORED", "PER MB STORED", "PER KB STORED"}[t]
|
||||
}
|
||||
|
||||
func (t StorageResourcePricingStrategy) GetStrategy() string {
|
||||
return [...]string{"PER_DATA_STORED", "PER_GB_STORED", "PER_MB_STORED", "PER_KB_STORED"}[t]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user