crud

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2024 License: MIT Imports: 37 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotAuthorized  = errors.New("you're not authorized to do this ⛔")
	ErrEmptyName      = errors.New("name is empty")
	ErrEmptyFolder    = errors.New("folder is empty")
	ErrAbsoluteFolder = errors.New("folder has to be absolute")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	TemporaryFolder string
	ChunkUpload     bool
}

func Flags

func Flags(fs *flag.FlagSet, prefix string) *Config

type Service added in v0.26.0

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

func New

func New(config *Config, storageService absto.Storage, filteredStorage absto.Storage, rendererService *renderer.Service, shareService provider.ShareManager, webhookService provider.WebhookManager, thumbnailService thumbnail.Service, exifService provider.MetadataManager, searchService search.Service, eventProducer provider.EventProducer, tracerProvider trace.TracerProvider) (Service, error)

func (Service) Create added in v0.26.0

func (s Service) Create(w http.ResponseWriter, r *http.Request, request provider.Request)

func (Service) CreateSavedSearch added in v0.26.0

func (s Service) CreateSavedSearch(w http.ResponseWriter, r *http.Request, request provider.Request)

func (Service) Delete added in v0.26.0

func (s Service) Delete(w http.ResponseWriter, r *http.Request, request provider.Request)

func (Service) DeleteSavedSearch added in v0.26.0

func (s Service) DeleteSavedSearch(w http.ResponseWriter, r *http.Request, request provider.Request)

func (Service) DoRename added in v0.26.0

func (s Service) DoRename(ctx context.Context, oldPath, newPath string, oldItem absto.Item) (absto.Item, error)

func (Service) Download added in v0.26.0

func (s Service) Download(w http.ResponseWriter, r *http.Request, request provider.Request, items []absto.Item)

func (Service) Get added in v0.26.0

func (Service) Post added in v0.26.0

func (s Service) Post(w http.ResponseWriter, r *http.Request, request provider.Request)

func (Service) Rename added in v0.26.0

func (s Service) Rename(w http.ResponseWriter, r *http.Request, request provider.Request)

Jump to

Keyboard shortcuts

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