Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dhij/ecomm
/ functions
Functions
418 in github.com/dhij/ecomm
⨍
Functions
418
◇
Types & classes
57
↓ 19 callers
Function
file_api_proto_rawDescGZIP
()
ecomm-grpc/pb/api.pb.go:1700
↓ 15 callers
Method
GetId
()
ecomm-grpc/pb/api.pb.go:804
↓ 11 callers
Method
String
()
ecomm-grpc/pb/api.pb.go:781
↓ 10 callers
Function
NewMySQLStorer
(db *sqlx.DB)
ecomm-grpc/storer/storer_mysql.go:19
↓ 9 callers
Function
withTestDB
(t *testing.T, fn func(*sqlx.DB, sqlmock.Sqlmock))
ecomm-grpc/storer/storer_mysql_test.go:13
↓ 5 callers
Method
GetEmail
()
ecomm-grpc/pb/api.pb.go:818
↓ 5 callers
Method
GetProduct
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:26
↓ 5 callers
Method
GetUser
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:36
↓ 4 callers
Method
Close
()
db/db.go:23
↓ 4 callers
Method
CreateOrder
(ctx context.Context, o *Order)
ecomm-grpc/storer/storer_mysql.go:78
↓ 4 callers
Method
CreateOrder
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:30
↓ 4 callers
Method
CreateProduct
(ctx context.Context, p *Product)
ecomm-grpc/storer/storer_mysql.go:25
↓ 4 callers
Method
CreateProduct
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:25
↓ 4 callers
Method
CreateSession
(ctx context.Context, in *SessionReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:40
↓ 4 callers
Method
CreateUser
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:35
↓ 4 callers
Method
DeleteOrder
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:34
↓ 4 callers
Method
DeleteProduct
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:29
↓ 4 callers
Method
DeleteSession
(ctx context.Context, in *SessionReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:43
↓ 4 callers
Method
DeleteUser
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:39
↓ 4 callers
Function
GetAdminMiddlewareFunc
(tokenMaker *token.JWTMaker)
ecomm-api/handler/middleware.go:32
↓ 4 callers
Function
GetAuthMiddlewareFunc
(tokenMaker *token.JWTMaker)
ecomm-api/handler/middleware.go:14
↓ 4 callers
Method
GetOrder
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:31
↓ 4 callers
Method
GetSession
(ctx context.Context, in *SessionReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:41
↓ 4 callers
Method
GetUserEmail
()
ecomm-grpc/pb/api.pb.go:580
↓ 4 callers
Method
ListNotificationEvents
(ctx context.Context, in *ListNotificationEventsReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:44
↓ 4 callers
Method
ListOrders
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:32
↓ 4 callers
Method
ListProducts
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:27
↓ 4 callers
Method
ListUsers
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:37
↓ 4 callers
Method
RevokeSession
(ctx context.Context, in *SessionReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:42
↓ 4 callers
Method
UpdateNotificationEvent
(ctx context.Context, in *UpdateNotificationEventReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:45
↓ 4 callers
Method
UpdateOrderStatus
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:33
↓ 4 callers
Method
UpdateProduct
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:28
↓ 4 callers
Method
UpdateUser
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:38
↓ 4 callers
Method
execTx
(ctx context.Context, fn func(*sqlx.Tx) error)
ecomm-grpc/storer/storer_mysql.go:209
↓ 4 callers
Function
toPBOrderRes
(o *storer.Order)
ecomm-grpc/server/mapping.go:114
↓ 4 callers
Function
toPBProductRes
(p *storer.Product)
ecomm-grpc/server/mapping.go:25
↓ 4 callers
Function
toPBUserRes
(u *storer.User)
ecomm-grpc/server/mapping.go:155
↓ 4 callers
Function
toProductRes
(p *pb.ProductRes)
ecomm-api/handler/mapping.go:24
↓ 4 callers
Function
toUserRes
(u *pb.UserRes)
ecomm-api/handler/mapping.go:117
↓ 3 callers
Method
CreateToken
(id int64, email string, isAdmin bool, duration time.Duration)
token/jwt_maker.go:18
↓ 3 callers
Method
DeleteOrder
(ctx context.Context, id int64)
ecomm-grpc/storer/storer_mysql.go:188
↓ 3 callers
Method
GetOrder
(ctx context.Context, userID int64)
ecomm-grpc/storer/storer_mysql.go:133
↓ 3 callers
Method
GetUserId
()
ecomm-grpc/pb/api.pb.go:573
↓ 3 callers
Method
ListOrders
(ctx context.Context)
ecomm-grpc/storer/storer_mysql.go:160
↓ 3 callers
Method
Run
(ctx context.Context)
ecomm-notification/server/server.go:34
↓ 3 callers
Function
toOrderRes
(o *pb.OrderRes)
ecomm-api/handler/mapping.go:82
↓ 3 callers
Function
toTimePtr
(t time.Time)
ecomm-grpc/server/mapping.go:72
↓ 2 callers
Method
DeleteProduct
(ctx context.Context, id int64)
ecomm-grpc/storer/storer_mysql.go:69
↓ 2 callers
Method
Descriptor
Deprecated: Use UserReq.ProtoReflect.Descriptor instead.
ecomm-grpc/pb/api.pb.go:800
↓ 2 callers
Method
EnqueueNotificationEvent
(ctx context.Context, ne *NotificationEvent)
ecomm-grpc/storer/storer_mysql.go:350
↓ 2 callers
Method
GetIsAdmin
()
ecomm-grpc/pb/api.pb.go:832
↓ 2 callers
Method
GetProduct
(ctx context.Context, id int64)
ecomm-grpc/storer/storer_mysql.go:40
↓ 2 callers
Method
GetStatus
()
ecomm-grpc/pb/api.pb.go:587
↓ 2 callers
Function
HashPassword
(password string)
util/password.go:9
↓ 2 callers
Method
ListProducts
(ctx context.Context)
ecomm-grpc/storer/storer_mysql.go:50
↓ 2 callers
Function
NewEcommClient
(cc grpc.ClientConnInterface)
ecomm-grpc/pb/api_grpc.pb.go:52
↓ 2 callers
Method
UpdateProduct
(ctx context.Context, p *Product)
ecomm-grpc/storer/storer_mysql.go:60
↓ 2 callers
Method
VerifyToken
(tokenStr string)
token/jwt_maker.go:33
↓ 2 callers
Function
deleteNotificationEvent
(ctx context.Context, tx *sqlx.Tx, id int64)
ecomm-grpc/storer/storer_mysql.go:408
↓ 2 callers
Function
toPBOrderStatus
(os storer.OrderStatus)
ecomm-grpc/server/mapping.go:101
↓ 2 callers
Function
toPBProductReq
(p ProductReq)
ecomm-api/handler/mapping.go:10
↓ 2 callers
Function
toPBUserReq
(u UserReq)
ecomm-api/handler/mapping.go:108
↓ 2 callers
Function
updateNotificationState
(ctx context.Context, tx *sqlx.Tx, es *NotificationState)
ecomm-grpc/storer/storer_mysql.go:417
↓ 2 callers
Function
verifyClaimsFromAuthHeader
(r *http.Request, tokenMaker *token.JWTMaker)
ecomm-api/handler/middleware.go:55
↓ 1 callers
Function
CheckPassword
(password string, hashedPassword string)
util/password.go:18
↓ 1 callers
Method
Descriptor
()
ecomm-grpc/pb/api.pb.go:56
↓ 1 callers
Method
Descriptor
()
ecomm-grpc/pb/api.pb.go:102
↓ 1 callers
Method
GetDB
()
db/db.go:27
↓ 1 callers
Method
GetExpiresAt
()
ecomm-grpc/pb/api.pb.go:1045
↓ 1 callers
Method
GetIsRevoked
()
ecomm-grpc/pb/api.pb.go:1038
↓ 1 callers
Method
GetMessage
()
ecomm-grpc/pb/api.pb.go:1375
↓ 1 callers
Method
GetOrderStatusByID
(ctx context.Context, id int64)
ecomm-grpc/storer/storer_mysql.go:150
↓ 1 callers
Method
GetPassword
()
ecomm-grpc/pb/api.pb.go:825
↓ 1 callers
Method
GetProducts
()
ecomm-grpc/pb/api.pb.go:397
↓ 1 callers
Method
GetRefreshToken
()
ecomm-grpc/pb/api.pb.go:1031
↓ 1 callers
Method
GetStateId
()
ecomm-grpc/pb/api.pb.go:1204
↓ 1 callers
Method
GetUsers
()
ecomm-grpc/pb/api.pb.go:966
↓ 1 callers
Function
NewHandler
(client pb.EcommClient, secretKey string)
ecomm-api/handler/handler.go:23
↓ 1 callers
Function
NewJWTMaker
(secretKey string)
token/jwt_maker.go:14
↓ 1 callers
Function
NewServer
(client pb.EcommClient, adminInfo *AdminInfo)
ecomm-notification/server/server.go:27
↓ 1 callers
Function
NewServer
(storer *storer.MySQLStorer)
ecomm-grpc/server/server.go:19
↓ 1 callers
Function
NewUserClaims
(id int64, email string, isAdmin bool, duration time.Duration)
token/claims.go:18
↓ 1 callers
Function
RegisterEcommServer
(s grpc.ServiceRegistrar, srv EcommServer)
ecomm-grpc/pb/api_grpc.pb.go:349
↓ 1 callers
Function
RegisterRoutes
(handler *handler)
ecomm-api/handler/routes.go:11
↓ 1 callers
Function
Start
(addr string)
ecomm-api/handler/routes.go:74
↓ 1 callers
Function
createOrder
(ctx context.Context, tx *sqlx.Tx, o *Order)
ecomm-grpc/storer/storer_mysql.go:103
↓ 1 callers
Function
createOrderItem
(ctx context.Context, tx *sqlx.Tx, oi OrderItem)
ecomm-grpc/storer/storer_mysql.go:118
↓ 1 callers
Function
file_api_proto_init
()
ecomm-grpc/pb/api.pb.go:1799
↓ 1 callers
Function
getNotificationEventAttempts
(ctx context.Context, tx *sqlx.Tx, id int64)
ecomm-grpc/storer/storer_mysql.go:389
↓ 1 callers
Function
insertNotificationEvent
(ctx context.Context, tx *sqlx.Tx, u *NotificationEvent)
ecomm-grpc/storer/storer_mysql.go:335
↓ 1 callers
Function
insertNotificationState
(ctx context.Context, tx *sqlx.Tx, es *NotificationState)
ecomm-grpc/storer/storer_mysql.go:320
↓ 1 callers
Function
patchProductReq
(product *storer.Product, p *pb.ProductReq)
ecomm-grpc/server/mapping.go:44
↓ 1 callers
Function
patchUserReq
(user *storer.User, u *pb.UserReq)
ecomm-grpc/server/mapping.go:165
↓ 1 callers
Method
processNotificationEvents
(ctx context.Context)
ecomm-notification/server/server.go:54
↓ 1 callers
Method
sendNotification
(ctx context.Context, ev *pb.NotificationEvent)
ecomm-notification/server/server.go:86
↓ 1 callers
Function
toOrderItems
(oi []*pb.OrderItem)
ecomm-api/handler/mapping.go:94
↓ 1 callers
Function
toPBOrderItems
(items []storer.OrderItem)
ecomm-grpc/server/mapping.go:132
↓ 1 callers
Function
toPBOrderItems
(oi []*OrderItem)
ecomm-api/handler/mapping.go:47
↓ 1 callers
Function
toPBOrderReq
(o OrderReq)
ecomm-api/handler/mapping.go:37
↓ 1 callers
Function
toPBOrderStatus
(s OrderStatus)
ecomm-api/handler/mapping.go:69
next →
1–100 of 418, ranked by callers