fileservice

package
v0.0.0-...-a90bb2e Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(s storage.FileStore) *Service

func (*Service) AddFile

func (fs *Service) AddFile(path, name, mime string, size int) (*file.File, error)

func (*Service) DeleteFiles

func (fs *Service) DeleteFiles(ids []string) error

func (*Service) GetFiles

func (fs *Service) GetFiles(ids []string) ([]*file.File, error)

Jump to

Keyboard shortcuts

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