Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModifyAllowedFileExt ¶
func ModifyAllowedFileExt(extensions []string)
func ModifyDefaultPathFile ¶
func ModifyDefaultPathFile(path string)
func SaveFileToStorage ¶
func SaveFileToStorage(c FiberInterface, fieldName string, required bool) (string, error)
Types ¶
type CustomError ¶
type CustomError struct {
// contains filtered or unexported fields
}
func NewCommonError ¶
func NewCommonError(field, message string) CustomError
func (CustomError) Error ¶
func (e CustomError) Error() string
type FiberInterface ¶
type FiberInterface interface { BodyParser(out interface{}) error QueryParser(out interface{}) error FormValue(key string, defaultValue ...string) string Params(key string, defaultValue ...string) string Query(key string, defaultValue ...string) string FormFile(key string) (*multipart.FileHeader, error) }
type Parser ¶
type Parser[T any] struct { // contains filtered or unexported fields }
func New ¶
func New[T any](c FiberInterface) *Parser[T]
type RulesFunc ¶
type RulesFunc func() RuleSet
func BodyParser ¶
func BodyParser() RulesFunc
func QueryParser ¶
func QueryParser() RulesFunc
Click to show internal directories.
Click to hide internal directories.