controllers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProviderSet = wire.NewSet(New)

Functions

This section is empty.

Types

type Controller

type Controller interface {
	CreateVolume(c *gin.Context)
	CreateFile(c *gin.Context)
	CreateDirectory(c *gin.Context)

	DeleteFile(c *gin.Context)

	GetVolume(c *gin.Context)
	DownloadDirectory(c *gin.Context)
	DownloadFile(c *gin.Context)
}

func CreateVolumesController

func CreateVolumesController(cf string, sto storages.Storage, rep repositories.Repository) (Controller, error)

func New

func New(logger *zap.Logger, s services.Service) Controller

type DefaultController

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

func (DefaultController) CreateDirectory

func (d DefaultController) CreateDirectory(c *gin.Context)

func (DefaultController) CreateFile

func (d DefaultController) CreateFile(c *gin.Context)

func (DefaultController) CreateVolume

func (d DefaultController) CreateVolume(c *gin.Context)

func (DefaultController) DeleteFile added in v0.0.25

func (d DefaultController) DeleteFile(c *gin.Context)

func (DefaultController) DownloadDirectory

func (d DefaultController) DownloadDirectory(c *gin.Context)

func (DefaultController) DownloadFile added in v0.0.25

func (d DefaultController) DownloadFile(c *gin.Context)

func (DefaultController) GetVolume

func (d DefaultController) GetVolume(c *gin.Context)

Jump to

Keyboard shortcuts

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