vfile

package
v1.10.9 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FileMap is the map for registered file drivers.
	FileMap = map[string]Driver{}
)

Functions

func Register

func Register(name string, driver Driver) error

Register registers custom file driver to v.

Types

type Driver

type Driver interface {
	New() Driver
	GetMode() (data interface{}, err error)
	Upload(ctx g.Ctx) (string, error)
}

func NewFile

func NewFile() (d Driver)

Jump to

Keyboard shortcuts

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