file

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLike

type AppLike interface {
	DB() db.Client
	Disk(names ...string) fs.Disk
}

type FileService

type FileService struct {
	DB   func() db.Client
	Disk func(names ...string) fs.Disk
}

func New

func New(app AppLike) *FileService

func (*FileService) Delete

func (m *FileService) Delete(c fs.Context, fileIDs []uint64) (any, error)

func (*FileService) FileListHook

func (m *FileService) FileListHook(query *db.QueryOption, entities []*schema.Entity) ([]*schema.Entity, error)

func (*FileService) Upload

func (m *FileService) Upload(c fs.Context, _ any) (_ fs.Map, err error)

Jump to

Keyboard shortcuts

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