controllers

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: AGPL-3.0 Imports: 13 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)

	GetVolume(c *gin.Context)

	DownloadDirectory(c *gin.Context)
	GetFile(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) DownloadDirectory

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

func (DefaultController) GetFile

func (d DefaultController) GetFile(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