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
↓ 1 callers
Method
GetCachedCategoryHierarchy
(ctx context.Context, categoryID int32)
cache/category.go:14
↓ 1 callers
Method
GetCachedCategoryWithAncestors
(ctx context.Context, categoryID int32)
cache/category.go:15
↓ 1 callers
Method
GetCartByID
(ctx context.Context, id int64)
postgres/repository/cart/querier.go:22
↓ 1 callers
Method
GetCategory
(ctx context.Context, categoryID int32)
postgres/category_service.go:29
↓ 1 callers
Method
GetCategoryByName
(ctx context.Context, category string)
postgres/repository/category/querier.go:15
↓ 1 callers
Method
GetCategoryHierarchy
(ctx context.Context, category Category)
category.go:39
↓ 1 callers
Method
GetCategoryWithAncestors
(ctx context.Context, id int32)
postgres/repository/category/querier.go:16
↓ 1 callers
Method
GetCategoryWithSiblings
(ctx context.Context, id int32)
postgres/repository/category/querier.go:17
↓ 1 callers
Method
GetChildCategories
(ctx context.Context, categoryID int32)
postgres/category_service.go:113
↓ 1 callers
Method
GetChildCategories
(ctx context.Context, parentID *int32)
postgres/repository/category/querier.go:18
↓ 1 callers
Method
GetEmailByOTP
(ctx context.Context, otp string)
cache/auth/signup_confirmation_otp.go:10
↓ 1 callers
Method
GetExpiry
(ctx context.Context)
redis/session/manager.go:128
↓ 1 callers
Method
GetMinMaxPricesByCategory
(ctx context.Context, category Category)
product.go:159
↓ 1 callers
Method
GetMinMaxPricesByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/querier.go:21
↓ 1 callers
Method
GetMinMaxPricesByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/querier.go:22
↓ 1 callers
Method
GetProductAttributesByProductID
(ctx context.Context, productID int64)
postgres/repository/product/querier.go:25
↓ 1 callers
Method
GetProductBrandsByCategoryID
(ctx context.Context, categoryID int32)
postgres/repository/product/querier.go:26
↓ 1 callers
Method
GetProductBrandsByCategoryIDs
(ctx context.Context, leafcategoryids []int32)
postgres/repository/product/querier.go:27
↓ 1 callers
Method
GetProductByID
(ctx context.Context, id int64)
postgres/repository/product/querier.go:28
↓ 1 callers
Method
GetProductPricingByProductID
(ctx context.Context, productID int64)
postgres/repository/product/querier.go:30
↓ 1 callers
Method
GetProductVariantPricingByVariantID
(ctx context.Context, variantID int64)
postgres/repository/product/querier.go:32
↓ 1 callers
Method
GetProductVariantsByProductID
(ctx context.Context, productID int64)
postgres/repository/product/querier.go:34
↓ 1 callers
Method
GetProductWithStoreAndPricingByID
(ctx context.Context, id int64)
postgres/repository/product/querier.go:35
↓ 1 callers
Method
GetRootCategories
(ctx context.Context)
postgres/repository/category/querier.go:20
↓ 1 callers
Method
GetSiblingCategories
(ctx context.Context, id int32)
category.go:36
↓ 1 callers
Method
GetSiblingCategories
(ctx context.Context, categoryID int32)
postgres/category_service.go:90
↓ 1 callers
Method
GetUser
(ctx context.Context, id int64)
postgres/repository/user/querier.go:17
↓ 1 callers
Method
GetUserByEmail
(ctx context.Context, email string)
postgres/repository/user/querier.go:18
↓ 1 callers
Method
GetUserDefaultAddress
(ctx context.Context, userID int64, defaultFor NullAddressDefaultType)
postgres/repository/address/querier.go:14
↓ 1 callers
Method
GetUserIDByToken
(ctx context.Context, token string)
cache/auth/reset_password_token.go:11
↓ 1 callers
Method
Group
(prefix string, middlewares ...MiddlewareFunc)
router.go:56
↓ 1 callers
Function
HashPassword
(password string)
pkg/utils/utils.go:42
↓ 1 callers
Function
He
(t)
web/static/js/bootstrap.bundle.min.js:6
↓ 1 callers
Method
IncrementCartItemQty
(ctx context.Context, cartID int64, variantID int64, qty int32)
postgres/repository/cart/querier.go:26
↓ 1 callers
Method
IndexProduct
(ctx context.Context, p anor.Product)
typesense/index.go:13
↓ 1 callers
Method
IndexStore
(ctx context.Context, ss anor.Store)
typesense/index.go:52
↓ 1 callers
Function
InitCollections
(ctx context.Context, c *typesense.Client)
typesense/init.go:103
↓ 1 callers
Function
Int32Value
Int32Value returns the value of the int32 pointer passed in or 0 if the pointer is nil.
pointer.go:68
↓ 1 callers
Method
IsMyItem
(ctx context.Context, params IsMyCartItemParams)
cart.go:67
↓ 1 callers
Function
JSONClientError
(logger *slog.Logger, w http.ResponseWriter, err error, statusCode int)
error.go:139
↓ 1 callers
Function
JSONServerInternalError
JSONServerInternalError writes a JSON error response to the http.ResponseWriter
error.go:120
↓ 1 callers
Function
Le
(t,e)
web/static/js/bootstrap.bundle.min.js:6
↓ 1 callers
Method
ListActive
(ctx context.Context, params OrderListParams)
order.go:91
↓ 1 callers
Method
ListActiveByUserID
(ctx context.Context, userID int64, limit int32, offset int32)
postgres/repository/order/querier.go:19
↓ 1 callers
Method
ListActiveWithPaymentAndAddressByUserID
(ctx context.Context, userID int64, limit int32, offset int32)
postgres/repository/order/querier.go:20
↓ 1 callers
Method
ListAddressesByUserID
(ctx context.Context, userID int64, offset int32, limit int32)
postgres/repository/address/querier.go:15
↓ 1 callers
Method
ListAllActive
(ctx context.Context)
featured_selection.go:35
↓ 1 callers
Method
ListAllActive
(ctx context.Context)
postgres/repository/featured_selection/querier.go:15
↓ 1 callers
Method
ListAllBrandsByCategory
(ctx context.Context, category Category)
product.go:158
↓ 1 callers
Method
ListByCategory
(ctx context.Context, category Category, params ListByCategoryParams)
product.go:157
↓ 1 callers
Method
ListByUserID
(ctx context.Context, userID int64, limit int32, offset int32)
postgres/repository/order/querier.go:21
↓ 1 callers
Method
ListPopularProducts
(ctx context.Context, params PopularProductListParams)
product.go:161
↓ 1 callers
Method
ListPopularProducts
(ctx context.Context, limit int32, offset int32, productIDs []int64)
postgres/repository/product/querier.go:36
↓ 1 callers
Method
ListUnpaid
(ctx context.Context, params OrderListParams)
order.go:92
↓ 1 callers
Method
ListUnpaidPaymentByUserID
(ctx context.Context, userID int64, limit int32, offset int32)
postgres/repository/order/querier.go:22
↓ 1 callers
Method
ListUnpaidWithPaymentAndAddressByUserID
(ctx context.Context, userID int64, limit int32, offset int32)
postgres/repository/order/querier.go:23
↓ 1 callers
Method
ListWithPaymentAndAddressByUserID
(ctx context.Context, userID int64, limit int32, offset int32)
postgres/repository/order/querier.go:24
↓ 1 callers
Function
Me
(t,e,i)
web/static/js/bootstrap.bundle.min.js:6
↓ 1 callers
Method
MergeGuestCartWithUserCart
(ctx context.Context, guestCartID int64, userCartID int64)
postgres/repository/cart/querier.go:28
↓ 1 callers
Function
New
(db DBTX)
postgres/repository/product/db.go:20
↓ 1 callers
Function
New
(db DBTX)
postgres/repository/user/db.go:20
↓ 1 callers
Function
New
(db DBTX)
postgres/repository/featured_selection/db.go:20
↓ 1 callers
Function
New
(db DBTX)
postgres/repository/payment/db.go:20
↓ 1 callers
Function
New
(db DBTX)
postgres/repository/store/db.go:20
↓ 1 callers
Function
New
(db DBTX)
postgres/repository/category/db.go:20
↓ 1 callers
Function
New
(db DBTX)
postgres/repository/cart/db.go:20
↓ 1 callers
Function
New
(db DBTX)
postgres/repository/order/db.go:21
↓ 1 callers
Function
New
(db DBTX)
postgres/repository/address/db.go:20
↓ 1 callers
Function
New
New creates and returns a new Config instance
config/config.go:104
↓ 1 callers
Function
NewAddressService
(ar address.Repository)
postgres/address_service.go:19
↓ 1 callers
Function
NewAuthService
(config ServiceConfig)
storefront/auth/service.go:50
↓ 1 callers
Function
NewCartService
(cr cart.Repository, pr product.Repository)
postgres/cart_service.go:26
↓ 1 callers
Function
NewCategoryService
(cr category.Repository, cache cache.CategoryCache)
postgres/category_service.go:22
↓ 1 callers
Function
NewClient
(ctx context.Context, cfg config.RedisConfig)
redis/init.go:9
↓ 1 callers
Function
NewDatabasePool
(ctx context.Context, cfg *config.DatabaseConfig)
postgres/init.go:14
↓ 1 callers
Function
NewEmailer
(cfg config.EmailConfig)
brevo/emailer.go:22
↓ 1 callers
Function
NewFeaturedSelectionService
(fsr featured_selection.Repository, pr product.Repository, cr category.Repository)
postgres/feature_selection_service.go:24
↓ 1 callers
Function
NewHandler
(cfg *HandlerConfig)
storefront/auth/handler.go:37
↓ 1 callers
Function
NewHandler
(cfg *HandlerConfig)
storefront/product/handler.go:51
↓ 1 callers
Function
NewHandler
(cfg *HandlerConfig)
storefront/user/handler.go:39
↓ 1 callers
Function
NewHandler
NewHandler creates and returns a new Handler instance.
storefront/checkout/handler.go:47
↓ 1 callers
Method
NewMessage
(subject string, to string, tmplName string, data interface{})
email/emailer.go:12
↓ 1 callers
Function
NewOrderService
(or order.Repository)
postgres/order_service.go:22
↓ 1 callers
Function
NewProductService
(ps product.Repository, cs category.Repository)
postgres/product_service.go:28
↓ 1 callers
Function
NewRepository
(pool *pgxpool.Pool)
postgres/repository/product/repository.go:25
↓ 1 callers
Function
NewRepository
(pool *pgxpool.Pool)
postgres/repository/user/repository.go:21
↓ 1 callers
Function
NewRepository
(db *pgxpool.Pool)
postgres/repository/store/repository.go:15
↓ 1 callers
Function
NewRepository
(db *pgxpool.Pool)
postgres/repository/category/repository.go:15
↓ 1 callers
Function
NewRouter
()
router.go:50
↓ 1 callers
Function
NewSKUGenerator
(category, product string)
pkg/utils/utils.go:110
↓ 1 callers
Function
NewSearcher
(client *typesense.Client)
typesense/searcher.go:9
↓ 1 callers
Function
NewStipePaymentService
(pr payment.Repository)
postgres/stripe_card_payment_service.go:19
↓ 1 callers
Function
NewUserService
(us user.Repository, cs cart.Repository, os order.Repository)
postgres/user_service.go:29
↓ 1 callers
Function
NewView
()
html/view.go:21
↓ 1 callers
Function
Qt
(t)
web/static/js/bootstrap.bundle.min.js:6
↓ 1 callers
Function
RegisterRoutes
(h *Handler, router *anor.Router)
storefront/auth/routes.go:7
↓ 1 callers
Function
RegisterRoutes
RegisterRoutes sets up the routing for the product-related endpoints. It maps HTTP methods and paths to their respective handler functions.
storefront/product/routes.go:9
↓ 1 callers
Function
RegisterRoutes
RegisterRoutes sets up the routing for the user-related endpoints. It maps HTTP methods and paths to their respective handler functions.
storefront/user/routes.go:9
↓ 1 callers
Function
RegisterRoutes
RegisterRoutes sets up the routing for the checkout-related endpoints. It maps HTTP methods and paths to their respective handler functions.
storefront/checkout/routes.go:9
↓ 1 callers
Method
ResendOTP
(ctx context.Context, email string)
auth.go:12
← previous
next →
1,101–1,200 of 2,954, ranked by callers