fsx

package
v1.13.10 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknownScheme = errors.New("unknown scheme")
)

Functions

func Register

func Register(scheme string, open Opener)

Register registers a Opener with specified scheme.

Types

type Closer

type Closer = func() error

func Open

func Open(ctx context.Context, url string) (http.FileSystem, Closer, error)

Open opens a file system by the scheme of specified url.

type Opener

type Opener = func(ctx context.Context, url string) (http.FileSystem, Closer, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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