Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidURLId = errors.New("invalid url id") ErrInvalidURL = errors.New("invalid url") ErrEmptyURLs = errors.New("urls can't be empty") ErrEmptyCategory = errors.New("category can't be empty") ErrInvalidCount = errors.New("invalid count") ErrGetCategory = errors.New("category could not be fetched") ErrDecodeBase64URL = errors.New("base64 url could not be decoded") ErrUpdateCategory = errors.New("category could not be updated") ErrSaveURL = errors.New("url could not be saved") ErrUpdateURL = errors.New("url could not be updated") ErrDeleteURL = errors.New("url could not be updated") ErrNotPerformedOperation = errors.New("operation could not be performed") )
Contains error codes for categorization service.
Functions ¶
func ValidateCategories ¶
ValidateCategories validates the category count.
func ValidateCount ¶
ValidateCount validates if it's a integer count.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.