Documentation ¶
Index ¶
- Constants
- Variables
- func CheckPassword(password string, hashedPassword string) error
- func CreatedIndex(client *meilisearch.Client, ID string) (*meilisearch.Index, error)
- func HashPassword(password string) (string, error)
- func MeiliSearch(host, key string) *meilisearch.Client
- func RandomEmail() string
- func RandomInt(min, max int32) int32
- func RandomString(n int) string
- func RemoveDuplicatesInt64(Nums []int64) []int64
- func RemoveDuplicatesTitles(Titles []string) []string
- func ValidateDate(input string) error
- func ValidateDuration(value string) error
- func ValidateEmail(value string) error
- func ValidateFullName(value string) error
- func ValidateGenreAndStudio(values []string) error
- func ValidateIMDbID(value string) error
- func ValidateImage(value string) error
- func ValidateInt(value int64) error
- func ValidateMAC(value string) error
- func ValidatePassword(value string) error
- func ValidateQuality(value string) error
- func ValidateSecretCode(value string) error
- func ValidateShow(value string) error
- func ValidateString(value string, minLength int, maxLength int) error
- func ValidateToken(value string) error
- func ValidateURL(value, domain string) error
- func ValidateUsername(value string) error
- func ValidateYear(value int32) error
- type Document
Constants ¶
View Source
const ( MemberRole = "member" AdminRole = "admin" RootRoll = "root" )
View Source
const ( AnimeMovieV1 = "AnimeMovieV1" AnimeSeasonV1 = "AnimeSeasonV1" )
Variables ¶
View Source
var AllRolls = []string{MemberRole, AdminRole, RootRoll}
Functions ¶
func CheckPassword ¶
CheckPassword checks if the provided password is correct or not
func CreatedIndex ¶
func HashPassword ¶
HashPassword returns the bcrypt hash of the password
func MeiliSearch ¶
func MeiliSearch(host, key string) *meilisearch.Client
func RandomEmail ¶
func RandomEmail() string
func RandomString ¶
func RemoveDuplicatesInt64 ¶
func RemoveDuplicatesTitles ¶
func ValidateDate ¶
func ValidateDuration ¶
func ValidateEmail ¶
func ValidateFullName ¶
func ValidateGenreAndStudio ¶
func ValidateIMDbID ¶
func ValidateImage ¶
func ValidateInt ¶
func ValidateMAC ¶
func ValidatePassword ¶
func ValidateQuality ¶
func ValidateSecretCode ¶
func ValidateShow ¶
func ValidateToken ¶
func ValidateURL ¶
func ValidateUsername ¶
func ValidateYear ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.