Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIKeyValidator ¶
APIKeyValidator validates API key strings
func (*APIKeyValidator) Validate ¶
func (v *APIKeyValidator) Validate(value interface{}) error
type IntervalValidator ¶
type IntervalValidator struct {
Required bool
MinDuration int // in minutes
MaxDuration int // in minutes
}
IntervalValidator validates interval strings (e.g., "1h", "30m")
func (*IntervalValidator) Validate ¶
func (v *IntervalValidator) Validate(value interface{}) error
type LimitValidator ¶
LimitValidator validates content limit integers
func (*LimitValidator) Validate ¶
func (v *LimitValidator) Validate(value interface{}) error
type PeriodValidator ¶
type PeriodValidator struct {
Required bool
}
PeriodValidator validates period strings (weekly, monthly, yearly, all)
func (*PeriodValidator) GetValidPeriods ¶
func (v *PeriodValidator) GetValidPeriods() []string
func (*PeriodValidator) Validate ¶
func (v *PeriodValidator) Validate(value interface{}) error
type URLValidator ¶
URLValidator validates URL strings
func (*URLValidator) Validate ¶
func (v *URLValidator) Validate(value interface{}) error
type ValidationError ¶
ValidationError represents a validation error
func (*ValidationError) Error ¶
func (e *ValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.