filedelivery

package
v0.0.0-...-46bccf7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ValidAccess validator.Func = func(fl validator.FieldLevel) bool {
	if access, ok := fl.Field().Interface().(entity.Access); ok {
		return access.Valid()
	}

	return false
}

Functions

func NewFileHanlder

func NewFileHanlder(router *gin.Engine, fileUseCase fileusecase.UseCase, wrapper Wrapper, config *utilconfig.Config)

Types

type FileHandler

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

func (*FileHandler) Create

func (fh *FileHandler) Create(ctx *gin.Context)

func (*FileHandler) CreateBulk

func (fh *FileHandler) CreateBulk(ctx *gin.Context)

func (*FileHandler) DeleteBulk

func (fh *FileHandler) DeleteBulk(ctx *gin.Context)

func (*FileHandler) GetPrivateByName

func (fh *FileHandler) GetPrivateByName(ctx *gin.Context)

func (*FileHandler) GetPublicByName

func (fh *FileHandler) GetPublicByName(ctx *gin.Context)

func (*FileHandler) Update

func (fh *FileHandler) Update(ctx *gin.Context)

type Wrapper

type Wrapper interface {
	ErrResp(err error) gin.H
	GetStatusCode(err error) int
}

Jump to

Keyboard shortcuts

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