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.

15 lines
314 B

4 years ago
  1. package filer
  2. import "github.com/chrislusf/seaweedfs/weed/storage/needle"
  3. type StorageOption struct {
  4. Replication string
  5. Collection string
  6. DataCenter string
  7. Rack string
  8. TtlSeconds int32
  9. Fsync bool
  10. }
  11. func (so *StorageOption) TtlString() string {
  12. return needle.SecondsToTTL(so.TtlSeconds)
  13. }