corefile

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2023 License: MIT Imports: 3 Imported by: 2

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 core.

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