multifs

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Overview

Package multifs MultiHashFS combines multiple hashfs instances to serve files from each.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiHashFS

type MultiHashFS struct {
	// contains filtered or unexported fields
}

func New

func New(instances ...*hashfs.FS) *MultiHashFS

New creates a new MultiHashFS instance and converts each hashfs.FS to an http.FileSystem.

func (*MultiHashFS) Open

func (m *MultiHashFS) Open(name string) (http.File, error)

Open attempts to open a file from any of the hashfs instances.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL