Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aliml92/anor
/ functions
Functions
2,954 in github.com/aliml92/anor
⨍
Functions
2,954
◇
Types & classes
447
Method
Exec
(context.Context, string, ...interface{})
postgres/repository/cart/db.go:15
Method
Exec
(context.Context, string, ...interface{})
postgres/repository/order/db.go:15
Method
ExecTx
(ctx context.Context, fn func(tx pgx.Tx) error)
postgres/repository/user/repository.go:32
Function
F
()
web/static/js/ion.rangeSlider.js:61
Function
Fade
(Splide2, Components2, options)
web/static/js/splide.js:2898
Function
Float64
Float64 returns a pointer to the float64 value passed in.
pointer.go:76
Function
Float64Value
Float64Value returns the value of the float64 pointer passed in or 0.0 if the pointer is nil.
pointer.go:82
Method
ForgotPasswordView
(w http.ResponseWriter, r *http.Request)
storefront/auth/handle_forgot_password_view.go:8
Function
FormatAddress
(address anor.Address)
html/funcs/specific.go:144
Function
FormatDate
FormatDate formats a time.Time value for date-only display
html/funcs/specific.go:206
Function
FormatDateTime
FormatDateTime formats a time.Time value for general date and time display
html/funcs/specific.go:201
Function
FormatHandle
(handle string, id interface{})
html/funcs/specific.go:87
Function
FormatProductQty
(count int)
html/funcs/specific.go:117
Function
FormatTimeForJS
FormatTimeForJS formats a time.Time value for JavaScript parsing
html/funcs/specific.go:211
Function
GenPageNums
(currentPage, pageCount, maxPages int)
html/funcs/specific.go:63
Function
GenerateRandomDiscount
()
pkg/utils/utils.go:37
Method
Get
(ctx context.Context, orderID int64, withItems bool)
order.go:89
Method
Get
(ctx context.Context, id int64)
user.go:70
Method
Get
(ctx context.Context, id int64)
address.go:73
Method
Get
(ctx context.Context, id int64, with relation.Set)
product.go:156
Method
Get
(ctx context.Context, id int64)
postgres/address_service.go:66
Method
Get
(ctx context.Context, orderID int64, withItems bool)
postgres/order_service.go:79
Method
Get
(ctx context.Context, id int64)
postgres/user_service.go:120
Method
Get
(ctx context.Context, id int64, includeItems bool)
postgres/cart_service.go:71
Method
Get
(ctx context.Context, id int64, with relation.Set)
postgres/product_service.go:35
Method
Get
(ctx context.Context, id int64)
postgres/repository/order/order.sql.go:57
Method
Get
(ctx context.Context, key string)
redis/session/manager.go:174
Method
GetActivityCounts
(ctx context.Context, id int64)
user.go:74
Method
GetActivityCounts
(ctx context.Context, id int64)
postgres/user_service.go:189
Method
GetAddressByID
(ctx context.Context, id int64)
postgres/repository/address/address.sql.go:56
Method
GetByEmail
(ctx context.Context, email string)
postgres/user_service.go:146
Method
GetByOrderID
(ctx context.Context, orderID int64)
postgres/stripe_card_payment_service.go:25
Method
GetByOrderID
(ctx context.Context, orderID int64)
postgres/repository/payment/stripe_card_payment.sql.go:46
Method
GetByUserID
(ctx context.Context, userID int64, includeItems bool)
postgres/cart_service.go:138
Method
GetCachedCategory
(ctx context.Context, categoryID int32)
redis/cache/category_cache.go:69
Method
GetCachedCategoryHierarchy
(ctx context.Context, categoryID int32)
redis/cache/category_cache.go:94
Method
GetCachedCategoryWithAncestors
(ctx context.Context, categoryID int32)
redis/cache/category_cache.go:119
Method
GetCachedProductBrandsByCategoryID
(ctx context.Context, categoryID int32)
cache/product.go:10
Method
GetCachedProductBrandsByCategoryID
(ctx context.Context, categoryID int32)
redis/cache/product_cache.go:29
Method
GetCart
GetCart calls GetCartFunc.
mocks/cart_service.go:333
Method
GetCartByID
(ctx context.Context, id int64)
postgres/repository/cart/select.sql.go:61
Method
GetCartByUserID
(ctx context.Context, userID *int64)
postgres/repository/cart/select.sql.go:84
Method
GetCartCalls
GetCartCalls gets all the calls that were made to GetCart. Check the length with: len(mockedCartService.GetCartCalls())
mocks/cart_service.go:356
Method
GetCartItemsByCartID
(ctx context.Context, cartID int64)
postgres/repository/cart/select.sql.go:104
Method
GetCartItemsByUserID
(ctx context.Context, userID *int64)
postgres/repository/cart/querier.go:25
Method
GetCartItemsByUserID
(ctx context.Context, userID *int64)
postgres/repository/cart/select.sql.go:145
Method
GetCategory
(ctx context.Context, id int32)
postgres/repository/category/category.sql.go:91
Method
GetCategoryByName
(ctx context.Context, category string)
postgres/repository/category/category.sql.go:111
Method
GetCategoryHierarchy
(ctx context.Context, c anor.Category)
postgres/category_service.go:152
Method
GetCategoryWithAncestors
(ctx context.Context, categoryID int32)
category.go:40
Method
GetCategoryWithAncestors
(ctx context.Context, categoryID int32)
postgres/category_service.go:192
Method
GetCategoryWithAncestors
(ctx context.Context, id int32)
postgres/repository/category/category.sql.go:146
Method
GetCategoryWithSiblings
(ctx context.Context, id int32)
postgres/repository/category/category.sql.go:179
Method
GetChildCategories
(ctx context.Context, id int32)
category.go:37
Method
GetChildCategories
(ctx context.Context, parentID *int32)
postgres/repository/category/category.sql.go:208
Method
GetDefault
(ctx context.Context, userID int64, defaultFor anor.AddressDefaultType)
postgres/address_service.go:93
Method
GetEmailByOTP
(ctx context.Context, otp string)
redis/cache/auth/signup_confirmation_otp.go:30
Method
GetGuestCartItems
GetGuestCartItems calls GetGuestCartItemsFunc.
mocks/cart_service.go:373
Method
GetGuestCartItemsCalls
GetGuestCartItemsCalls gets all the calls that were made to GetGuestCartItems. Check the length with: len(mockedCartService.GetGuestCartItemsCalls()
mocks/cart_service.go:394
Method
GetItemByOrderIds
(ctx context.Context, orderids []int64)
postgres/repository/order/order.sql.go:82
Method
GetLeafCategoryIDs
(ctx context.Context, id int32)
postgres/repository/category/category.sql.go:248
Method
GetMinMaxPricesByCategory
(ctx context.Context, category anor.Category)
postgres/product_service.go:262
Method
GetMinMaxPricesByCategory
GetMinMaxPricesByCategory calls GetMinMaxPricesByCategoryFunc.
mocks/product_service.go:140
Method
GetMinMaxPricesByCategoryCalls
GetMinMaxPricesByCategoryCalls gets all the calls that were made to GetMinMaxPricesByCategory. Check the length with: len(mockedProductService.GetMi
mocks/product_service.go:161
Method
GetMinMaxPricesByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/pricing.sql.go:73
Method
GetMinMaxPricesByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/pricing.sql.go:97
Method
GetNewArrivals
GetNewArrivals calls GetNewArrivalsFunc.
mocks/product_service.go:176
Method
GetNewArrivalsCalls
GetNewArrivalsCalls gets all the calls that were made to GetNewArrivals. Check the length with: len(mockedProductService.GetNewArrivalsCalls())
mocks/product_service.go:197
Method
GetOrders
(ctx context.Context, cartID int64)
postgres/repository/order/querier.go:18
Method
GetOrders
(ctx context.Context, cartID int64)
postgres/repository/order/order.sql.go:118
Method
GetProduct
GetProduct calls GetProductFunc.
mocks/product_service.go:212
Method
GetProductAttributesByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/querier.go:23
Method
GetProductAttributesByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/attribute.sql.go:63
Method
GetProductAttributesByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/querier.go:24
Method
GetProductAttributesByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/attribute.sql.go:106
Method
GetProductAttributesByProductID
(ctx context.Context, productID int64)
postgres/repository/product/attribute.sql.go:145
Method
GetProductBrandsByCategory
GetProductBrandsByCategory calls GetProductBrandsByCategoryFunc.
mocks/product_service.go:248
Method
GetProductBrandsByCategoryCalls
GetProductBrandsByCategoryCalls gets all the calls that were made to GetProductBrandsByCategory. Check the length with: len(mockedProductService.Get
mocks/product_service.go:269
Method
GetProductBrandsByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/product.sql.go:115
Method
GetProductBrandsByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/product.sql.go:140
Method
GetProductByID
(ctx context.Context, id int64)
postgres/repository/product/product.sql.go:165
Method
GetProductCalls
GetProductCalls gets all the calls that were made to GetProduct. Check the length with: len(mockedProductService.GetProductCalls())
mocks/product_service.go:233
Method
GetProductImageURLsByID
(ctx context.Context, id int64)
postgres/repository/product/querier.go:29
Method
GetProductImageURLsByID
(ctx context.Context, id int64)
postgres/repository/product/product.sql.go:191
Method
GetProductPricingByProductID
(ctx context.Context, productID int64)
postgres/repository/product/pricing.sql.go:109
Method
GetProductVariantByID
(ctx context.Context, id int64)
postgres/repository/product/querier.go:31
Method
GetProductVariantByID
(ctx context.Context, id int64)
postgres/repository/product/product_variant.sql.go:40
Method
GetProductVariantPricingByVariantID
(ctx context.Context, variantID int64)
postgres/repository/product/pricing.sql.go:128
Method
GetProductVariantQtyInBulk
(ctx context.Context, variantids []int64)
postgres/repository/product/product_variant.sql.go:71
Method
GetProductVariantsByProductID
(ctx context.Context, productID int64)
postgres/repository/product/product_variant.sql.go:126
Method
GetProductWithStoreAndPricingByID
(ctx context.Context, id int64)
postgres/repository/product/product.sql.go:219
Method
GetProductsByCategory
GetProductsByCategory calls GetProductsByCategoryFunc.
mocks/product_service.go:284
Method
GetProductsByCategoryCalls
GetProductsByCategoryCalls gets all the calls that were made to GetProductsByCategory. Check the length with: len(mockedProductService.GetProductsBy
mocks/product_service.go:307
Method
GetProductsByLeafCategoryID
( ctx context.Context, categoryID int32, p anor.ListByCategoryParams, )
postgres/repository/product/repository.go:51
Method
GetProductsByLeafCategoryID
GetProductsByLeafCategoryID calls GetProductsByLeafCategoryIDFunc.
mocks/product_service.go:324
Method
GetProductsByLeafCategoryIDCalls
GetProductsByLeafCategoryIDCalls gets all the calls that were made to GetProductsByLeafCategoryID. Check the length with: len(mockedProductService.G
mocks/product_service.go:347
Method
GetProductsByLeafCategoryIDs
( ctx context.Context, categoryIDs []int32, p anor.ListByCategoryParams, )
postgres/repository/product/repository.go:147
Method
GetProductsByNonLeafCategoryID
GetProductsByNonLeafCategoryID calls GetProductsByNonLeafCategoryIDFunc.
mocks/product_service.go:364
Method
GetProductsByNonLeafCategoryIDCalls
GetProductsByNonLeafCategoryIDCalls gets all the calls that were made to GetProductsByNonLeafCategoryID. Check the length with: len(mockedProductSer
mocks/product_service.go:387
Method
GetRootCategories
(ctx context.Context)
postgres/category_service.go:133
← previous
next →
2,001–2,100 of 2,954, ranked by callers