file

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 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) CreateResource added in v0.6.0

func (m *FileService) CreateResource(api *fs.Resource)

func (*FileService) Delete

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

func (*FileService) FileListHook

func (m *FileService) FileListHook(
	ctx context.Context,
	query *db.QueryOption,
	entities []*entity.Entity,
) ([]*entity.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