Documentation ¶
Index ¶
Constants ¶
View Source
const ( RootDir = "." ParentDir = ".." )
View Source
const ( MetricFactor = 1000 BinaryFactor = 1024 )
View Source
const ( Byte = 1 KiloByte = MetricFactor * Byte MegaByte = MetricFactor * KiloByte GigaByte = MetricFactor * MegaByte TeraByte = MetricFactor * GigaByte PetaByte = MetricFactor * TeraByte ExaByte = MetricFactor * PetaByte KibiByte = BinaryFactor * Byte MebiByte = BinaryFactor * KibiByte GibiByte = BinaryFactor * MebiByte TebiByte = BinaryFactor * GibiByte PebiByte = BinaryFactor * TebiByte ExbiByte = BinaryFactor * PebiByte )
View Source
const ShortestLengthPrecision = -1
Variables ¶
This section is empty.
Functions ¶
func FormatSizeBinary ¶ added in v1.8.25
func FormatSizeMetric ¶ added in v1.8.25
Types ¶
type Controller ¶ added in v1.5.0
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶ added in v1.5.0
func NewController(fileSystem fs.FS, config ControllerConfig) *Controller
func (*Controller) ListFiles ¶ added in v1.8.10
func (c *Controller) ListFiles() http.Handler
func (*Controller) UploadFile ¶ added in v1.8.10
func (c *Controller) UploadFile() http.Handler
type ControllerConfig ¶ added in v1.8.0
Click to show internal directories.
Click to hide internal directories.