github.com/decred/dcrlnd@v0.7.6/healthcheck/diskcheck_js.go (about)

     1  package healthcheck
     2  
     3  import "fmt"
     4  
     5  // AvailableDiskSpaceRatio returns ratio of available disk space to total
     6  // capacity.
     7  func AvailableDiskSpaceRatio(_ string) (float64, error) {
     8  	return 0, fmt.Errorf("disk space check not supported in WebAssembly")
     9  }
    10  
    11  // AvailableDiskSpace returns the available disk space in bytes of the given
    12  // file system.
    13  func AvailableDiskSpace(_ string) (uint64, error) {
    14  	return 0, fmt.Errorf("disk space check not supported in WebAssembly")
    15  }