MCPcopy Create free account

hub / github.com/dhij/ecomm / functions

Functions418 in github.com/dhij/ecomm

↓ 19 callersFunctionfile_api_proto_rawDescGZIP
()
ecomm-grpc/pb/api.pb.go:1700
↓ 15 callersMethodGetId
()
ecomm-grpc/pb/api.pb.go:804
↓ 11 callersMethodString
()
ecomm-grpc/pb/api.pb.go:781
↓ 10 callersFunctionNewMySQLStorer
(db *sqlx.DB)
ecomm-grpc/storer/storer_mysql.go:19
↓ 9 callersFunctionwithTestDB
(t *testing.T, fn func(*sqlx.DB, sqlmock.Sqlmock))
ecomm-grpc/storer/storer_mysql_test.go:13
↓ 5 callersMethodGetEmail
()
ecomm-grpc/pb/api.pb.go:818
↓ 5 callersMethodGetProduct
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:26
↓ 5 callersMethodGetUser
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:36
↓ 4 callersMethodClose
()
db/db.go:23
↓ 4 callersMethodCreateOrder
(ctx context.Context, o *Order)
ecomm-grpc/storer/storer_mysql.go:78
↓ 4 callersMethodCreateOrder
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:30
↓ 4 callersMethodCreateProduct
(ctx context.Context, p *Product)
ecomm-grpc/storer/storer_mysql.go:25
↓ 4 callersMethodCreateProduct
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:25
↓ 4 callersMethodCreateSession
(ctx context.Context, in *SessionReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:40
↓ 4 callersMethodCreateUser
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:35
↓ 4 callersMethodDeleteOrder
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:34
↓ 4 callersMethodDeleteProduct
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:29
↓ 4 callersMethodDeleteSession
(ctx context.Context, in *SessionReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:43
↓ 4 callersMethodDeleteUser
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:39
↓ 4 callersFunctionGetAdminMiddlewareFunc
(tokenMaker *token.JWTMaker)
ecomm-api/handler/middleware.go:32
↓ 4 callersFunctionGetAuthMiddlewareFunc
(tokenMaker *token.JWTMaker)
ecomm-api/handler/middleware.go:14
↓ 4 callersMethodGetOrder
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:31
↓ 4 callersMethodGetSession
(ctx context.Context, in *SessionReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:41
↓ 4 callersMethodGetUserEmail
()
ecomm-grpc/pb/api.pb.go:580
↓ 4 callersMethodListNotificationEvents
(ctx context.Context, in *ListNotificationEventsReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:44
↓ 4 callersMethodListOrders
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:32
↓ 4 callersMethodListProducts
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:27
↓ 4 callersMethodListUsers
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:37
↓ 4 callersMethodRevokeSession
(ctx context.Context, in *SessionReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:42
↓ 4 callersMethodUpdateNotificationEvent
(ctx context.Context, in *UpdateNotificationEventReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:45
↓ 4 callersMethodUpdateOrderStatus
(ctx context.Context, in *OrderReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:33
↓ 4 callersMethodUpdateProduct
(ctx context.Context, in *ProductReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:28
↓ 4 callersMethodUpdateUser
(ctx context.Context, in *UserReq, opts ...grpc.CallOption)
ecomm-grpc/pb/api_grpc.pb.go:38
↓ 4 callersMethodexecTx
(ctx context.Context, fn func(*sqlx.Tx) error)
ecomm-grpc/storer/storer_mysql.go:209
↓ 4 callersFunctiontoPBOrderRes
(o *storer.Order)
ecomm-grpc/server/mapping.go:114
↓ 4 callersFunctiontoPBProductRes
(p *storer.Product)
ecomm-grpc/server/mapping.go:25
↓ 4 callersFunctiontoPBUserRes
(u *storer.User)
ecomm-grpc/server/mapping.go:155
↓ 4 callersFunctiontoProductRes
(p *pb.ProductRes)
ecomm-api/handler/mapping.go:24
↓ 4 callersFunctiontoUserRes
(u *pb.UserRes)
ecomm-api/handler/mapping.go:117
↓ 3 callersMethodCreateToken
(id int64, email string, isAdmin bool, duration time.Duration)
token/jwt_maker.go:18
↓ 3 callersMethodDeleteOrder
(ctx context.Context, id int64)
ecomm-grpc/storer/storer_mysql.go:188
↓ 3 callersMethodGetOrder
(ctx context.Context, userID int64)
ecomm-grpc/storer/storer_mysql.go:133
↓ 3 callersMethodGetUserId
()
ecomm-grpc/pb/api.pb.go:573
↓ 3 callersMethodListOrders
(ctx context.Context)
ecomm-grpc/storer/storer_mysql.go:160
↓ 3 callersMethodRun
(ctx context.Context)
ecomm-notification/server/server.go:34
↓ 3 callersFunctiontoOrderRes
(o *pb.OrderRes)
ecomm-api/handler/mapping.go:82
↓ 3 callersFunctiontoTimePtr
(t time.Time)
ecomm-grpc/server/mapping.go:72
↓ 2 callersMethodDeleteProduct
(ctx context.Context, id int64)
ecomm-grpc/storer/storer_mysql.go:69
↓ 2 callersMethodDescriptor
Deprecated: Use UserReq.ProtoReflect.Descriptor instead.
ecomm-grpc/pb/api.pb.go:800
↓ 2 callersMethodEnqueueNotificationEvent
(ctx context.Context, ne *NotificationEvent)
ecomm-grpc/storer/storer_mysql.go:350
↓ 2 callersMethodGetIsAdmin
()
ecomm-grpc/pb/api.pb.go:832
↓ 2 callersMethodGetProduct
(ctx context.Context, id int64)
ecomm-grpc/storer/storer_mysql.go:40
↓ 2 callersMethodGetStatus
()
ecomm-grpc/pb/api.pb.go:587
↓ 2 callersFunctionHashPassword
(password string)
util/password.go:9
↓ 2 callersMethodListProducts
(ctx context.Context)
ecomm-grpc/storer/storer_mysql.go:50
↓ 2 callersFunctionNewEcommClient
(cc grpc.ClientConnInterface)
ecomm-grpc/pb/api_grpc.pb.go:52
↓ 2 callersMethodUpdateProduct
(ctx context.Context, p *Product)
ecomm-grpc/storer/storer_mysql.go:60
↓ 2 callersMethodVerifyToken
(tokenStr string)
token/jwt_maker.go:33
↓ 2 callersFunctiondeleteNotificationEvent
(ctx context.Context, tx *sqlx.Tx, id int64)
ecomm-grpc/storer/storer_mysql.go:408
↓ 2 callersFunctiontoPBOrderStatus
(os storer.OrderStatus)
ecomm-grpc/server/mapping.go:101
↓ 2 callersFunctiontoPBProductReq
(p ProductReq)
ecomm-api/handler/mapping.go:10
↓ 2 callersFunctiontoPBUserReq
(u UserReq)
ecomm-api/handler/mapping.go:108
↓ 2 callersFunctionupdateNotificationState
(ctx context.Context, tx *sqlx.Tx, es *NotificationState)
ecomm-grpc/storer/storer_mysql.go:417
↓ 2 callersFunctionverifyClaimsFromAuthHeader
(r *http.Request, tokenMaker *token.JWTMaker)
ecomm-api/handler/middleware.go:55
↓ 1 callersFunctionCheckPassword
(password string, hashedPassword string)
util/password.go:18
↓ 1 callersMethodDescriptor
()
ecomm-grpc/pb/api.pb.go:56
↓ 1 callersMethodDescriptor
()
ecomm-grpc/pb/api.pb.go:102
↓ 1 callersMethodGetDB
()
db/db.go:27
↓ 1 callersMethodGetExpiresAt
()
ecomm-grpc/pb/api.pb.go:1045
↓ 1 callersMethodGetIsRevoked
()
ecomm-grpc/pb/api.pb.go:1038
↓ 1 callersMethodGetMessage
()
ecomm-grpc/pb/api.pb.go:1375
↓ 1 callersMethodGetOrderStatusByID
(ctx context.Context, id int64)
ecomm-grpc/storer/storer_mysql.go:150
↓ 1 callersMethodGetPassword
()
ecomm-grpc/pb/api.pb.go:825
↓ 1 callersMethodGetProducts
()
ecomm-grpc/pb/api.pb.go:397
↓ 1 callersMethodGetRefreshToken
()
ecomm-grpc/pb/api.pb.go:1031
↓ 1 callersMethodGetStateId
()
ecomm-grpc/pb/api.pb.go:1204
↓ 1 callersMethodGetUsers
()
ecomm-grpc/pb/api.pb.go:966
↓ 1 callersFunctionNewHandler
(client pb.EcommClient, secretKey string)
ecomm-api/handler/handler.go:23
↓ 1 callersFunctionNewJWTMaker
(secretKey string)
token/jwt_maker.go:14
↓ 1 callersFunctionNewServer
(client pb.EcommClient, adminInfo *AdminInfo)
ecomm-notification/server/server.go:27
↓ 1 callersFunctionNewServer
(storer *storer.MySQLStorer)
ecomm-grpc/server/server.go:19
↓ 1 callersFunctionNewUserClaims
(id int64, email string, isAdmin bool, duration time.Duration)
token/claims.go:18
↓ 1 callersFunctionRegisterEcommServer
(s grpc.ServiceRegistrar, srv EcommServer)
ecomm-grpc/pb/api_grpc.pb.go:349
↓ 1 callersFunctionRegisterRoutes
(handler *handler)
ecomm-api/handler/routes.go:11
↓ 1 callersFunctionStart
(addr string)
ecomm-api/handler/routes.go:74
↓ 1 callersFunctioncreateOrder
(ctx context.Context, tx *sqlx.Tx, o *Order)
ecomm-grpc/storer/storer_mysql.go:103
↓ 1 callersFunctioncreateOrderItem
(ctx context.Context, tx *sqlx.Tx, oi OrderItem)
ecomm-grpc/storer/storer_mysql.go:118
↓ 1 callersFunctionfile_api_proto_init
()
ecomm-grpc/pb/api.pb.go:1799
↓ 1 callersFunctiongetNotificationEventAttempts
(ctx context.Context, tx *sqlx.Tx, id int64)
ecomm-grpc/storer/storer_mysql.go:389
↓ 1 callersFunctioninsertNotificationEvent
(ctx context.Context, tx *sqlx.Tx, u *NotificationEvent)
ecomm-grpc/storer/storer_mysql.go:335
↓ 1 callersFunctioninsertNotificationState
(ctx context.Context, tx *sqlx.Tx, es *NotificationState)
ecomm-grpc/storer/storer_mysql.go:320
↓ 1 callersFunctionpatchProductReq
(product *storer.Product, p *pb.ProductReq)
ecomm-grpc/server/mapping.go:44
↓ 1 callersFunctionpatchUserReq
(user *storer.User, u *pb.UserReq)
ecomm-grpc/server/mapping.go:165
↓ 1 callersMethodprocessNotificationEvents
(ctx context.Context)
ecomm-notification/server/server.go:54
↓ 1 callersMethodsendNotification
(ctx context.Context, ev *pb.NotificationEvent)
ecomm-notification/server/server.go:86
↓ 1 callersFunctiontoOrderItems
(oi []*pb.OrderItem)
ecomm-api/handler/mapping.go:94
↓ 1 callersFunctiontoPBOrderItems
(items []storer.OrderItem)
ecomm-grpc/server/mapping.go:132
↓ 1 callersFunctiontoPBOrderItems
(oi []*OrderItem)
ecomm-api/handler/mapping.go:47
↓ 1 callersFunctiontoPBOrderReq
(o OrderReq)
ecomm-api/handler/mapping.go:37
↓ 1 callersFunctiontoPBOrderStatus
(s OrderStatus)
ecomm-api/handler/mapping.go:69
next →1–100 of 418, ranked by callers