upload

package
v0.0.0-...-5cd70b9 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFileTooLarge = errNamespace.NewType("file_too_large", apperror.ErrTraitValidationError).New("file is too large to be uploaded")
)

Functions

This section is empty.

Types

type FileValidator

type FileValidator interface {
	Validate(size int64) error
}

func NewFileValidator

func NewFileValidator(cfg *koanf.Koanf) FileValidator

func NewSizeValidator

func NewSizeValidator(maxSize int64) FileValidator

Jump to

Keyboard shortcuts

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