pathing.go 461 B

1234567891011
  1. package pathing
  2. // StoragePathFormatter is an interface used to format storage paths for exporting data types.
  3. type StoragePathFormatter[T any] interface {
  4. // RootDir returns the root directory for the storage path.
  5. RootDir() string
  6. // ToFullPath returns the full path to a file name within the storage
  7. // directory leveraging a prefix and an incoming T type (generally a daterange or timestamp).
  8. ToFullPath(prefix string, in T, fileExt string) string
  9. }