utils

package
v0.0.0-...-05815ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 13, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCities

func GenerateCities(count int) []*models.City

func GenerateCity

func GenerateCity() *models.City

func GenerateCountries

func GenerateCountries(count int) []*models.Country

func GenerateCountry

func GenerateCountry() *models.Country

func GenerateGenre

func GenerateGenre() *models.Genre

func GenerateGenres

func GenerateGenres(count int) []*models.Genre

func GenerateLoginToken

func GenerateLoginToken() *models.LoginToken

func GenerateMovie

func GenerateMovie() *models.Movie

func GenerateMovies

func GenerateMovies(count int) []*models.Movie

func GeneratePasswordResetToken

func GeneratePasswordResetToken() *models.PasswordResetToken

func GeneratePasswordResetTokens

func GeneratePasswordResetTokens(count int) []*models.PasswordResetToken

func GenerateSqlMockRow

func GenerateSqlMockRow(data any) *sqlmock.Rows

func GenerateSqlMockRows

func GenerateSqlMockRows(data any) *sqlmock.Rows

func GenerateState

func GenerateState() *models.State

func GenerateStates

func GenerateStates(count int) []*models.State

func GenerateTheater

func GenerateTheater() *models.Theater

func GenerateTheaterLocation

func GenerateTheaterLocation() *models.TheaterLocation

func GenerateTheaterLocations

func GenerateTheaterLocations(count int) []*models.TheaterLocation

func GenerateTheaters

func GenerateTheaters(count int) []*models.Theater

func GenerateUser

func GenerateUser() *models.User

Models

func GenerateUserProfile

func GenerateUserProfile() *models.UserProfile

func GenerateUserRegistrationToken

func GenerateUserRegistrationToken() *models.UserRegistrationToken

func GenerateUserSession

func GenerateUserSession() *models.UserSession

func GetAuthorizationHeader

func GetAuthorizationHeader(req *http.Request) string

func GetPointerOf

func GetPointerOf[T any](value T) *T

func SliceToMaps

func SliceToMaps(slice any) []map[string]any

func StructToMap

func StructToMap(input any) map[string]any

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL