You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
314 B
16 lines
314 B
package filer
|
|
|
|
import "github.com/chrislusf/seaweedfs/weed/storage/needle"
|
|
|
|
type StorageOption struct {
|
|
Replication string
|
|
Collection string
|
|
DataCenter string
|
|
Rack string
|
|
TtlSeconds int32
|
|
Fsync bool
|
|
}
|
|
|
|
func (so *StorageOption) TtlString() string {
|
|
return needle.SecondsToTTL(so.TtlSeconds)
|
|
}
|