crud

package
v0.23.0 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 38 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 App

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

func New

func New(config Config, storage absto.Storage, rendererApp renderer.App, shareApp provider.ShareManager, webhookApp provider.WebhookManager, thumbnailApp thumbnail.App, exifApp exif.App, eventProducer provider.EventProducer, amqpClient *amqp.Client, tracer trace.Tracer) (App, error)

func (App) Create

func (a App) Create(w http.ResponseWriter, r *http.Request, request provider.Request)

func (App) Delete

func (a App) Delete(w http.ResponseWriter, r *http.Request, request provider.Request)

Delete given path from filesystem

func (App) Download added in v0.8.0

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

Download content of a directory into a streamed zip

func (App) Get

func (a App) Get(w http.ResponseWriter, r *http.Request, request provider.Request) (renderer.Page, error)

func (App) Post

func (a App) Post(w http.ResponseWriter, r *http.Request, request provider.Request)

func (App) Rename

func (a App) Rename(w http.ResponseWriter, r *http.Request, request provider.Request)

func (App) Start

func (a App) Start(done <-chan struct{})

type Config

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

func Flags

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

Jump to

Keyboard shortcuts

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