MCPcopy Create free account

hub / github.com/PacktPublishing/Domain-Driven-Design-with-GoLang / functions

Functions122 in github.com/PacktPublishing/Domain-Driven-Design-with-GoLang

↓ 12 callersMethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
chapter8/mocks/cookies.go:70
↓ 7 callersFunctionNewPoint
(x, y int)
chapter3/value_objects.go:8
↓ 6 callersMethodAmountInStock
(ctx context.Context)
chapter8/cookies.go:16
↓ 6 callersMethodGet
(ctx context.Context, tripStart time.Time, tripEnd time.Time, location string, budget *money.Money)
chapter6/recommendation/internal/recommendation/recommendation.go:42
↓ 5 callersMethodChargeCard
(ctx context.Context, cardToken string, amountInCents int)
chapter8/cookies.go:13
↓ 5 callersFunctionNewCookieService
(e EmailSender, c CardCharger, a CookieStockChecker)
chapter8/cookies.go:26
↓ 5 callersFunctionNewMockCardCharger
NewMockCardCharger creates a new mock instance.
chapter8/mocks/cookies.go:63
↓ 5 callersFunctionNewMockCookieStockChecker
NewMockCookieStockChecker creates a new mock instance.
chapter8/mocks/cookies.go:26
↓ 5 callersFunctionNewMockEmailSender
NewMockEmailSender creates a new mock instance.
chapter8/mocks/cookies.go:100
↓ 5 callersMethodPurchaseCookies
( ctx context.Context, amountOfCookiesToPurchase int, cardToken string, email string, )
chapter8/cookies.go:34
↓ 4 callersMethodSendEmailReceipt
(ctx context.Context, emailAddress string)
chapter8/cookies.go:10
↓ 2 callersMethodCanBeBought
()
chapter4/domain_service_before.go:9
↓ 2 callersMethodPing
(ctx context.Context)
chapter5/internal/purchase/repository.go:20
↓ 2 callersMethodvalidateTimeZone
(t time.Time)
chapter3/refactored_auction_entity.go:53
↓ 1 callersMethodAddStamp
()
chapter5/internal/loyalty/coffeebux.go:22
↓ 1 callersFunctionBuildCar
(carType string)
chapter4/car_factory.go:30
↓ 1 callersMethodChargeCard
(ctx context.Context, amount money.Money, cardToken string)
chapter5/internal/purchase/purchase.go:49
↓ 1 callersMethodCompletePurchase
(ctx context.Context, storeID uuid.UUID, purchase *Purchase, coffeeBuxCard *loyalty.CoffeeBux)
chapter5/internal/purchase/purchase.go:66
↓ 1 callersMethodCreateBooking
(ctx context.Context, booking Booking)
chapter4/booking_application_service.go:16
↓ 1 callersMethodExecute
(ctx context.Context)
chapter7/saga.go:6
↓ 1 callersMethodGetAvailability
(ctx context.Context, tripStart time.Time, tripEnd time.Time, location string)
chapter6/recommendation/internal/recommendation/recommendation.go:28
↓ 1 callersMethodGetBalance
()
chapter3/wallet_aggregate.go:11
↓ 1 callersMethodGetStoreDiscount
(ctx context.Context, storeID uuid.UUID)
chapter5/internal/store/repository.go:17
↓ 1 callersMethodGetStoreSpecificDiscount
(ctx context.Context, storeID uuid.UUID)
chapter5/internal/purchase/purchase.go:53
↓ 1 callersMethodIsUserPaymentActive
(ctx context.Context, userID string)
chapter2/open_host.go:12
↓ 1 callersFunctionMove
(currLocation Point, direction int)
chapter3/value_objects.go:28
↓ 1 callersFunctionNewHandler
(svc Service)
chapter6/recommendation/internal/recommendation/handler.go:17
↓ 1 callersFunctionNewMux
(recHandler recommendation.Handler)
chapter6/recommendation/internal/transport/transporthttp.go:11
↓ 1 callersFunctionNewPartnerShipAdaptor
(client *http.Client, url string)
chapter6/recommendation/internal/recommendation/adapter.go:26
↓ 1 callersFunctionNewService
(availability AvailabilityGetter)
chapter6/recommendation/internal/recommendation/recommendation.go:35
↓ 1 callersMethodPay
(ctx context.Context, purchases []coffeeco.Product)
chapter5/internal/loyalty/coffeebux.go:31
↓ 1 callersMethodRollback
(ctx context.Context)
chapter7/saga.go:7
↓ 1 callersMethodSaveBooking
(ctx context.Context, booking Booking)
chapter4/calendar_repository.go:11
↓ 1 callersMethodStore
(ctx context.Context, purchase Purchase)
chapter5/internal/purchase/repository.go:19
↓ 1 callersMethodToCampaign
()
chapter2/anti_corruption.go:24
↓ 1 callersMethodUserID
()
chapter2/second_pass.go:22
↓ 1 callersMethodcalculateStoreSpecificDiscount
(ctx context.Context, storeID uuid.UUID, purchase *Purchase)
chapter5/internal/purchase/purchase.go:99
↓ 1 callersMethodcreateOrder
(ctx context.Context)
chapter7/saga.go:20
↓ 1 callersMethodcreatePayment
(ctx context.Context)
chapter7/saga.go:36
↓ 1 callersFunctiontoMongoPurchase
(p Purchase)
chapter5/internal/purchase/repository.go:59
↓ 1 callersMethodvalidateAndEnrich
()
chapter5/internal/purchase/purchase.go:28
MethodAddProductToBasket
(p *Product)
chapter4/domain_service_after.go:13
MethodAddToCart
(p Product)
chapter4/domain_service_before.go:20
MethodAddUser
(ctx context.Context, request UserAddRequest)
chapter2/preliminary_design.go:50
MethodAmountInStock
AmountInStock mocks base method.
chapter8/mocks/cookies.go:38
MethodAmountInStock
AmountInStock indicates an expected call of AmountInStock.
chapter8/mocks/cookies.go:46
MethodBeepBeep
()
chapter4/car_factory.go:9
MethodBeepBeep
()
chapter4/car_factory.go:16
MethodBeepBeep
()
chapter4/car_factory.go:25
MethodChargeCard
(ctx context.Context, amount money.Money, cardToken string)
chapter5/internal/payment/stripe.go:26
MethodChargeCard
ChargeCard mocks base method.
chapter8/mocks/cookies.go:75
MethodChargeCard
ChargeCard indicates an expected call of ChargeCard.
chapter8/mocks/cookies.go:83
MethodConvert
(ctx context.Context, subSelection SubscriptionType)
chapter2/second_pass.go:31
MethodConvert
(ctx context.Context, subSelection SubscriptionType)
chapter2/second_pass.go:34
FunctionCreateBooking
(from, to time.Time, userID, hairDresserID uuid.UUID)
chapter4/calendar_factory.go:18
MethodCreateBooking
(ctx context.Context, booking Booking)
chapter4/booking_application_service.go:28
MethodCreateLead
(ctx context.Context, request LeadRequest)
chapter2/second_pass.go:14
MethodDeleteBooking
(ctx context.Context, booking Booking)
chapter4/calendar_repository.go:12
MethodDeleteBooking
(ctx context.Context, booking Booking)
chapter4/calendar_repository.go:44
MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
chapter8/mocks/cookies.go:33
MethodEXPECT
EXPECT returns an object that allows the caller to indicate expected use.
chapter8/mocks/cookies.go:107
MethodExecute
(ctx context.Context)
chapter7/saga.go:12
MethodExecute
(ctx context.Context)
chapter7/saga.go:27
MethodGetAuctionElapsedDuration
()
chapter3/refactored_auction_entity.go:19
MethodGetAuctionEnd
()
chapter3/anemic_entity.go:54
MethodGetAuctionEndTimeInUTC
()
chapter3/refactored_auction_entity.go:23
MethodGetAuctionStart
()
chapter3/anemic_entity.go:46
MethodGetAuctionStartTimeInUTC
()
chapter3/refactored_auction_entity.go:35
MethodGetAvailability
(ctx context.Context, tripStart time.Time, tripEnd time.Time, location string)
chapter6/recommendation/internal/recommendation/adapter.go:37
MethodGetCreatedAt
()
chapter3/anemic_entity.go:38
MethodGetID
()
chapter3/anemic_entity.go:18
MethodGetId
()
chapter3/refactored_auction_entity.go:49
MethodGetRecommendation
(w http.ResponseWriter, req *http.Request)
chapter6/recommendation/internal/recommendation/handler.go:32
MethodGetSellerID
()
chapter3/anemic_entity.go:30
MethodGetStoreDiscount
(ctx context.Context, storeID uuid.UUID)
chapter5/internal/store/repository.go:45
MethodGetStoreSpecificDiscount
(ctx context.Context, storeID uuid.UUID)
chapter5/internal/store/store.go:25
MethodGetWalletBalance
()
chapter3/wallet_aggregate.go:24
MethodHandle
(ctx context.Context)
chapter7/saga.go:45
MethodModifyUser
(ctx context.Context, request UserModifyRequest)
chapter2/preliminary_design.go:51
FunctionNewBookingAppService
(bookingRepo BookingRepository, bookingDomainService BookingDomainService)
chapter4/booking_application_service.go:24
FunctionNewCheckoutService
(shoppingCart *ShoppingCart)
chapter4/domain_service_after.go:9
FunctionNewMailChimp
(apiKey string, from string, httpClient http.Client)
chapter4/email_service.go:36
FunctionNewMongoRepo
(ctx context.Context, connectionString string)
chapter5/internal/store/repository.go:32
FunctionNewMongoRepo
(ctx context.Context, connectionString string)
chapter5/internal/purchase/repository.go:27
FunctionNewPostgresRepository
(ctx context.Context, dbConnString string)
chapter4/calendar_repository.go:19
FunctionNewService
(repo Repository)
chapter5/internal/store/store.go:21
FunctionNewService
(cardService CardChargeService, purchaseRepo Repository, storeService StoreService)
chapter5/internal/purchase/purchase.go:62
FunctionNewSomeEntity
()
chapter3/uuid.go:9
FunctionNewStripeService
(apiKey string)
chapter5/internal/payment/stripe.go:17
MethodPing
(ctx context.Context)
chapter5/internal/store/repository.go:18
MethodPing
(ctx context.Context)
chapter5/internal/store/repository.go:25
MethodPing
(ctx context.Context)
chapter5/internal/purchase/repository.go:83
MethodRollback
(ctx context.Context)
chapter7/saga.go:16
MethodRollback
(ctx context.Context)
chapter7/saga.go:31
MethodSaveBooking
(ctx context.Context, booking Booking)
chapter4/calendar_repository.go:29
MethodSendEmail
(ctx context.Context, to string, title string, body string)
chapter4/email_service.go:12
MethodSendEmail
(ctx context.Context, to string, title string, body string)
chapter4/email_service.go:40
MethodSendEmailReceipt
SendEmailReceipt mocks base method.
chapter8/mocks/cookies.go:112
MethodSendEmailReceipt
SendEmailReceipt indicates an expected call of SendEmailReceipt.
chapter8/mocks/cookies.go:120
MethodSetAuctionEnd
(auctionEnd time.Time)
chapter3/refactored_auction_entity.go:27
next →1–100 of 122, ranked by callers