mediaservice

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppLike added in v0.0.5

type AppLike interface {
	DB() app.DBClient
	Disk(names ...string) app.Disk
}

type MediaService

type MediaService struct {
	DB   func() app.DBClient
	Disk func(names ...string) app.Disk
}

func New added in v0.0.5

func New(app AppLike) *MediaService

func (*MediaService) Delete

func (m *MediaService) Delete(c app.Context, fileIDs *[]any) (any, error)

func (*MediaService) MediaListHook

func (m *MediaService) MediaListHook(query *app.QueryOption, entities []*schema.Entity) ([]*schema.Entity, error)

func (*MediaService) Upload

func (m *MediaService) Upload(c app.Context, _ *any) (_ *app.Map, err error)

Jump to

Keyboard shortcuts

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