MCPcopy Create free account

hub / github.com/aliml92/anor / functions

Functions2,954 in github.com/aliml92/anor

MethodExec
(context.Context, string, ...interface{})
postgres/repository/cart/db.go:15
MethodExec
(context.Context, string, ...interface{})
postgres/repository/order/db.go:15
MethodExecTx
(ctx context.Context, fn func(tx pgx.Tx) error)
postgres/repository/user/repository.go:32
FunctionF
()
web/static/js/ion.rangeSlider.js:61
FunctionFade
(Splide2, Components2, options)
web/static/js/splide.js:2898
FunctionFloat64
Float64 returns a pointer to the float64 value passed in.
pointer.go:76
FunctionFloat64Value
Float64Value returns the value of the float64 pointer passed in or 0.0 if the pointer is nil.
pointer.go:82
MethodForgotPasswordView
(w http.ResponseWriter, r *http.Request)
storefront/auth/handle_forgot_password_view.go:8
FunctionFormatAddress
(address anor.Address)
html/funcs/specific.go:144
FunctionFormatDate
FormatDate formats a time.Time value for date-only display
html/funcs/specific.go:206
FunctionFormatDateTime
FormatDateTime formats a time.Time value for general date and time display
html/funcs/specific.go:201
FunctionFormatHandle
(handle string, id interface{})
html/funcs/specific.go:87
FunctionFormatProductQty
(count int)
html/funcs/specific.go:117
FunctionFormatTimeForJS
FormatTimeForJS formats a time.Time value for JavaScript parsing
html/funcs/specific.go:211
FunctionGenPageNums
(currentPage, pageCount, maxPages int)
html/funcs/specific.go:63
FunctionGenerateRandomDiscount
()
pkg/utils/utils.go:37
MethodGet
(ctx context.Context, orderID int64, withItems bool)
order.go:89
MethodGet
(ctx context.Context, id int64)
user.go:70
MethodGet
(ctx context.Context, id int64)
address.go:73
MethodGet
(ctx context.Context, id int64, with relation.Set)
product.go:156
MethodGet
(ctx context.Context, id int64)
postgres/address_service.go:66
MethodGet
(ctx context.Context, orderID int64, withItems bool)
postgres/order_service.go:79
MethodGet
(ctx context.Context, id int64)
postgres/user_service.go:120
MethodGet
(ctx context.Context, id int64, includeItems bool)
postgres/cart_service.go:71
MethodGet
(ctx context.Context, id int64, with relation.Set)
postgres/product_service.go:35
MethodGet
(ctx context.Context, id int64)
postgres/repository/order/order.sql.go:57
MethodGet
(ctx context.Context, key string)
redis/session/manager.go:174
MethodGetActivityCounts
(ctx context.Context, id int64)
user.go:74
MethodGetActivityCounts
(ctx context.Context, id int64)
postgres/user_service.go:189
MethodGetAddressByID
(ctx context.Context, id int64)
postgres/repository/address/address.sql.go:56
MethodGetByEmail
(ctx context.Context, email string)
postgres/user_service.go:146
MethodGetByOrderID
(ctx context.Context, orderID int64)
postgres/stripe_card_payment_service.go:25
MethodGetByOrderID
(ctx context.Context, orderID int64)
postgres/repository/payment/stripe_card_payment.sql.go:46
MethodGetByUserID
(ctx context.Context, userID int64, includeItems bool)
postgres/cart_service.go:138
MethodGetCachedCategory
(ctx context.Context, categoryID int32)
redis/cache/category_cache.go:69
MethodGetCachedCategoryHierarchy
(ctx context.Context, categoryID int32)
redis/cache/category_cache.go:94
MethodGetCachedCategoryWithAncestors
(ctx context.Context, categoryID int32)
redis/cache/category_cache.go:119
MethodGetCachedProductBrandsByCategoryID
(ctx context.Context, categoryID int32)
cache/product.go:10
MethodGetCachedProductBrandsByCategoryID
(ctx context.Context, categoryID int32)
redis/cache/product_cache.go:29
MethodGetCart
GetCart calls GetCartFunc.
mocks/cart_service.go:333
MethodGetCartByID
(ctx context.Context, id int64)
postgres/repository/cart/select.sql.go:61
MethodGetCartByUserID
(ctx context.Context, userID *int64)
postgres/repository/cart/select.sql.go:84
MethodGetCartCalls
GetCartCalls gets all the calls that were made to GetCart. Check the length with: len(mockedCartService.GetCartCalls())
mocks/cart_service.go:356
MethodGetCartItemsByCartID
(ctx context.Context, cartID int64)
postgres/repository/cart/select.sql.go:104
MethodGetCartItemsByUserID
(ctx context.Context, userID *int64)
postgres/repository/cart/querier.go:25
MethodGetCartItemsByUserID
(ctx context.Context, userID *int64)
postgres/repository/cart/select.sql.go:145
MethodGetCategory
(ctx context.Context, id int32)
postgres/repository/category/category.sql.go:91
MethodGetCategoryByName
(ctx context.Context, category string)
postgres/repository/category/category.sql.go:111
MethodGetCategoryHierarchy
(ctx context.Context, c anor.Category)
postgres/category_service.go:152
MethodGetCategoryWithAncestors
(ctx context.Context, categoryID int32)
category.go:40
MethodGetCategoryWithAncestors
(ctx context.Context, categoryID int32)
postgres/category_service.go:192
MethodGetCategoryWithAncestors
(ctx context.Context, id int32)
postgres/repository/category/category.sql.go:146
MethodGetCategoryWithSiblings
(ctx context.Context, id int32)
postgres/repository/category/category.sql.go:179
MethodGetChildCategories
(ctx context.Context, id int32)
category.go:37
MethodGetChildCategories
(ctx context.Context, parentID *int32)
postgres/repository/category/category.sql.go:208
MethodGetDefault
(ctx context.Context, userID int64, defaultFor anor.AddressDefaultType)
postgres/address_service.go:93
MethodGetEmailByOTP
(ctx context.Context, otp string)
redis/cache/auth/signup_confirmation_otp.go:30
MethodGetGuestCartItems
GetGuestCartItems calls GetGuestCartItemsFunc.
mocks/cart_service.go:373
MethodGetGuestCartItemsCalls
GetGuestCartItemsCalls gets all the calls that were made to GetGuestCartItems. Check the length with: len(mockedCartService.GetGuestCartItemsCalls()
mocks/cart_service.go:394
MethodGetItemByOrderIds
(ctx context.Context, orderids []int64)
postgres/repository/order/order.sql.go:82
MethodGetLeafCategoryIDs
(ctx context.Context, id int32)
postgres/repository/category/category.sql.go:248
MethodGetMinMaxPricesByCategory
(ctx context.Context, category anor.Category)
postgres/product_service.go:262
MethodGetMinMaxPricesByCategory
GetMinMaxPricesByCategory calls GetMinMaxPricesByCategoryFunc.
mocks/product_service.go:140
MethodGetMinMaxPricesByCategoryCalls
GetMinMaxPricesByCategoryCalls gets all the calls that were made to GetMinMaxPricesByCategory. Check the length with: len(mockedProductService.GetMi
mocks/product_service.go:161
MethodGetMinMaxPricesByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/pricing.sql.go:73
MethodGetMinMaxPricesByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/pricing.sql.go:97
MethodGetNewArrivals
GetNewArrivals calls GetNewArrivalsFunc.
mocks/product_service.go:176
MethodGetNewArrivalsCalls
GetNewArrivalsCalls gets all the calls that were made to GetNewArrivals. Check the length with: len(mockedProductService.GetNewArrivalsCalls())
mocks/product_service.go:197
MethodGetOrders
(ctx context.Context, cartID int64)
postgres/repository/order/querier.go:18
MethodGetOrders
(ctx context.Context, cartID int64)
postgres/repository/order/order.sql.go:118
MethodGetProduct
GetProduct calls GetProductFunc.
mocks/product_service.go:212
MethodGetProductAttributesByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/querier.go:23
MethodGetProductAttributesByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/attribute.sql.go:63
MethodGetProductAttributesByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/querier.go:24
MethodGetProductAttributesByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/attribute.sql.go:106
MethodGetProductAttributesByProductID
(ctx context.Context, productID int64)
postgres/repository/product/attribute.sql.go:145
MethodGetProductBrandsByCategory
GetProductBrandsByCategory calls GetProductBrandsByCategoryFunc.
mocks/product_service.go:248
MethodGetProductBrandsByCategoryCalls
GetProductBrandsByCategoryCalls gets all the calls that were made to GetProductBrandsByCategory. Check the length with: len(mockedProductService.Get
mocks/product_service.go:269
MethodGetProductBrandsByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/product.sql.go:115
MethodGetProductBrandsByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/product.sql.go:140
MethodGetProductByID
(ctx context.Context, id int64)
postgres/repository/product/product.sql.go:165
MethodGetProductCalls
GetProductCalls gets all the calls that were made to GetProduct. Check the length with: len(mockedProductService.GetProductCalls())
mocks/product_service.go:233
MethodGetProductImageURLsByID
(ctx context.Context, id int64)
postgres/repository/product/querier.go:29
MethodGetProductImageURLsByID
(ctx context.Context, id int64)
postgres/repository/product/product.sql.go:191
MethodGetProductPricingByProductID
(ctx context.Context, productID int64)
postgres/repository/product/pricing.sql.go:109
MethodGetProductVariantByID
(ctx context.Context, id int64)
postgres/repository/product/querier.go:31
MethodGetProductVariantByID
(ctx context.Context, id int64)
postgres/repository/product/product_variant.sql.go:40
MethodGetProductVariantPricingByVariantID
(ctx context.Context, variantID int64)
postgres/repository/product/pricing.sql.go:128
MethodGetProductVariantQtyInBulk
(ctx context.Context, variantids []int64)
postgres/repository/product/product_variant.sql.go:71
MethodGetProductVariantsByProductID
(ctx context.Context, productID int64)
postgres/repository/product/product_variant.sql.go:126
MethodGetProductWithStoreAndPricingByID
(ctx context.Context, id int64)
postgres/repository/product/product.sql.go:219
MethodGetProductsByCategory
GetProductsByCategory calls GetProductsByCategoryFunc.
mocks/product_service.go:284
MethodGetProductsByCategoryCalls
GetProductsByCategoryCalls gets all the calls that were made to GetProductsByCategory. Check the length with: len(mockedProductService.GetProductsBy
mocks/product_service.go:307
MethodGetProductsByLeafCategoryID
( ctx context.Context, categoryID int32, p anor.ListByCategoryParams, )
postgres/repository/product/repository.go:51
MethodGetProductsByLeafCategoryID
GetProductsByLeafCategoryID calls GetProductsByLeafCategoryIDFunc.
mocks/product_service.go:324
MethodGetProductsByLeafCategoryIDCalls
GetProductsByLeafCategoryIDCalls gets all the calls that were made to GetProductsByLeafCategoryID. Check the length with: len(mockedProductService.G
mocks/product_service.go:347
MethodGetProductsByLeafCategoryIDs
( ctx context.Context, categoryIDs []int32, p anor.ListByCategoryParams, )
postgres/repository/product/repository.go:147
MethodGetProductsByNonLeafCategoryID
GetProductsByNonLeafCategoryID calls GetProductsByNonLeafCategoryIDFunc.
mocks/product_service.go:364
MethodGetProductsByNonLeafCategoryIDCalls
GetProductsByNonLeafCategoryIDCalls gets all the calls that were made to GetProductsByNonLeafCategoryID. Check the length with: len(mockedProductSer
mocks/product_service.go:387
MethodGetRootCategories
(ctx context.Context)
postgres/category_service.go:133
← previousnext →2,001–2,100 of 2,954, ranked by callers