Documentation ¶
Index ¶
- func AvailableGetHash(val string) bool
- func AvailableGetHashValidator() (string, func(validator.FieldLevel) bool)
- func AvailablePostHash(val string) bool
- func AvailablePostHashValidator() (string, func(validator.FieldLevel) bool)
- func GetValidator() *validator.Validate
- type HashGetParamDto
- type HashPostParamDto
- type URLBodyDto
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AvailableGetHash ¶
func AvailablePostHash ¶
func GetValidator ¶
func GetValidator() *validator.Validate
Types ¶
type HashGetParamDto ¶
type HashGetParamDto struct {
Hash string `json:"hash" validate:"required,availableGetHash"`
}
type HashPostParamDto ¶
type HashPostParamDto struct {
Hash string `json:"hash" validate:"required,availablePostHash"`
}
type URLBodyDto ¶
type URLBodyDto struct {
URL string `json:"url" validate:"required,http_url"`
}
Click to show internal directories.
Click to hide internal directories.