Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/PacktPublishing/Domain-Driven-Design-with-GoLang
/ functions
Functions
122 in github.com/PacktPublishing/Domain-Driven-Design-with-GoLang
⨍
Functions
122
◇
Types & classes
77
↓ 12 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
chapter8/mocks/cookies.go:70
↓ 7 callers
Function
NewPoint
(x, y int)
chapter3/value_objects.go:8
↓ 6 callers
Method
AmountInStock
(ctx context.Context)
chapter8/cookies.go:16
↓ 6 callers
Method
Get
(ctx context.Context, tripStart time.Time, tripEnd time.Time, location string, budget *money.Money)
chapter6/recommendation/internal/recommendation/recommendation.go:42
↓ 5 callers
Method
ChargeCard
(ctx context.Context, cardToken string, amountInCents int)
chapter8/cookies.go:13
↓ 5 callers
Function
NewCookieService
(e EmailSender, c CardCharger, a CookieStockChecker)
chapter8/cookies.go:26
↓ 5 callers
Function
NewMockCardCharger
NewMockCardCharger creates a new mock instance.
chapter8/mocks/cookies.go:63
↓ 5 callers
Function
NewMockCookieStockChecker
NewMockCookieStockChecker creates a new mock instance.
chapter8/mocks/cookies.go:26
↓ 5 callers
Function
NewMockEmailSender
NewMockEmailSender creates a new mock instance.
chapter8/mocks/cookies.go:100
↓ 5 callers
Method
PurchaseCookies
( ctx context.Context, amountOfCookiesToPurchase int, cardToken string, email string, )
chapter8/cookies.go:34
↓ 4 callers
Method
SendEmailReceipt
(ctx context.Context, emailAddress string)
chapter8/cookies.go:10
↓ 2 callers
Method
CanBeBought
()
chapter4/domain_service_before.go:9
↓ 2 callers
Method
Ping
(ctx context.Context)
chapter5/internal/purchase/repository.go:20
↓ 2 callers
Method
validateTimeZone
(t time.Time)
chapter3/refactored_auction_entity.go:53
↓ 1 callers
Method
AddStamp
()
chapter5/internal/loyalty/coffeebux.go:22
↓ 1 callers
Function
BuildCar
(carType string)
chapter4/car_factory.go:30
↓ 1 callers
Method
ChargeCard
(ctx context.Context, amount money.Money, cardToken string)
chapter5/internal/purchase/purchase.go:49
↓ 1 callers
Method
CompletePurchase
(ctx context.Context, storeID uuid.UUID, purchase *Purchase, coffeeBuxCard *loyalty.CoffeeBux)
chapter5/internal/purchase/purchase.go:66
↓ 1 callers
Method
CreateBooking
(ctx context.Context, booking Booking)
chapter4/booking_application_service.go:16
↓ 1 callers
Method
Execute
(ctx context.Context)
chapter7/saga.go:6
↓ 1 callers
Method
GetAvailability
(ctx context.Context, tripStart time.Time, tripEnd time.Time, location string)
chapter6/recommendation/internal/recommendation/recommendation.go:28
↓ 1 callers
Method
GetBalance
()
chapter3/wallet_aggregate.go:11
↓ 1 callers
Method
GetStoreDiscount
(ctx context.Context, storeID uuid.UUID)
chapter5/internal/store/repository.go:17
↓ 1 callers
Method
GetStoreSpecificDiscount
(ctx context.Context, storeID uuid.UUID)
chapter5/internal/purchase/purchase.go:53
↓ 1 callers
Method
IsUserPaymentActive
(ctx context.Context, userID string)
chapter2/open_host.go:12
↓ 1 callers
Function
Move
(currLocation Point, direction int)
chapter3/value_objects.go:28
↓ 1 callers
Function
NewHandler
(svc Service)
chapter6/recommendation/internal/recommendation/handler.go:17
↓ 1 callers
Function
NewMux
(recHandler recommendation.Handler)
chapter6/recommendation/internal/transport/transporthttp.go:11
↓ 1 callers
Function
NewPartnerShipAdaptor
(client *http.Client, url string)
chapter6/recommendation/internal/recommendation/adapter.go:26
↓ 1 callers
Function
NewService
(availability AvailabilityGetter)
chapter6/recommendation/internal/recommendation/recommendation.go:35
↓ 1 callers
Method
Pay
(ctx context.Context, purchases []coffeeco.Product)
chapter5/internal/loyalty/coffeebux.go:31
↓ 1 callers
Method
Rollback
(ctx context.Context)
chapter7/saga.go:7
↓ 1 callers
Method
SaveBooking
(ctx context.Context, booking Booking)
chapter4/calendar_repository.go:11
↓ 1 callers
Method
Store
(ctx context.Context, purchase Purchase)
chapter5/internal/purchase/repository.go:19
↓ 1 callers
Method
ToCampaign
()
chapter2/anti_corruption.go:24
↓ 1 callers
Method
UserID
()
chapter2/second_pass.go:22
↓ 1 callers
Method
calculateStoreSpecificDiscount
(ctx context.Context, storeID uuid.UUID, purchase *Purchase)
chapter5/internal/purchase/purchase.go:99
↓ 1 callers
Method
createOrder
(ctx context.Context)
chapter7/saga.go:20
↓ 1 callers
Method
createPayment
(ctx context.Context)
chapter7/saga.go:36
↓ 1 callers
Function
toMongoPurchase
(p Purchase)
chapter5/internal/purchase/repository.go:59
↓ 1 callers
Method
validateAndEnrich
()
chapter5/internal/purchase/purchase.go:28
Method
AddProductToBasket
(p *Product)
chapter4/domain_service_after.go:13
Method
AddToCart
(p Product)
chapter4/domain_service_before.go:20
Method
AddUser
(ctx context.Context, request UserAddRequest)
chapter2/preliminary_design.go:50
Method
AmountInStock
AmountInStock mocks base method.
chapter8/mocks/cookies.go:38
Method
AmountInStock
AmountInStock indicates an expected call of AmountInStock.
chapter8/mocks/cookies.go:46
Method
BeepBeep
()
chapter4/car_factory.go:9
Method
BeepBeep
()
chapter4/car_factory.go:16
Method
BeepBeep
()
chapter4/car_factory.go:25
Method
ChargeCard
(ctx context.Context, amount money.Money, cardToken string)
chapter5/internal/payment/stripe.go:26
Method
ChargeCard
ChargeCard mocks base method.
chapter8/mocks/cookies.go:75
Method
ChargeCard
ChargeCard indicates an expected call of ChargeCard.
chapter8/mocks/cookies.go:83
Method
Convert
(ctx context.Context, subSelection SubscriptionType)
chapter2/second_pass.go:31
Method
Convert
(ctx context.Context, subSelection SubscriptionType)
chapter2/second_pass.go:34
Function
CreateBooking
(from, to time.Time, userID, hairDresserID uuid.UUID)
chapter4/calendar_factory.go:18
Method
CreateBooking
(ctx context.Context, booking Booking)
chapter4/booking_application_service.go:28
Method
CreateLead
(ctx context.Context, request LeadRequest)
chapter2/second_pass.go:14
Method
DeleteBooking
(ctx context.Context, booking Booking)
chapter4/calendar_repository.go:12
Method
DeleteBooking
(ctx context.Context, booking Booking)
chapter4/calendar_repository.go:44
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
chapter8/mocks/cookies.go:33
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
chapter8/mocks/cookies.go:107
Method
Execute
(ctx context.Context)
chapter7/saga.go:12
Method
Execute
(ctx context.Context)
chapter7/saga.go:27
Method
GetAuctionElapsedDuration
()
chapter3/refactored_auction_entity.go:19
Method
GetAuctionEnd
()
chapter3/anemic_entity.go:54
Method
GetAuctionEndTimeInUTC
()
chapter3/refactored_auction_entity.go:23
Method
GetAuctionStart
()
chapter3/anemic_entity.go:46
Method
GetAuctionStartTimeInUTC
()
chapter3/refactored_auction_entity.go:35
Method
GetAvailability
(ctx context.Context, tripStart time.Time, tripEnd time.Time, location string)
chapter6/recommendation/internal/recommendation/adapter.go:37
Method
GetCreatedAt
()
chapter3/anemic_entity.go:38
Method
GetID
()
chapter3/anemic_entity.go:18
Method
GetId
()
chapter3/refactored_auction_entity.go:49
Method
GetRecommendation
(w http.ResponseWriter, req *http.Request)
chapter6/recommendation/internal/recommendation/handler.go:32
Method
GetSellerID
()
chapter3/anemic_entity.go:30
Method
GetStoreDiscount
(ctx context.Context, storeID uuid.UUID)
chapter5/internal/store/repository.go:45
Method
GetStoreSpecificDiscount
(ctx context.Context, storeID uuid.UUID)
chapter5/internal/store/store.go:25
Method
GetWalletBalance
()
chapter3/wallet_aggregate.go:24
Method
Handle
(ctx context.Context)
chapter7/saga.go:45
Method
ModifyUser
(ctx context.Context, request UserModifyRequest)
chapter2/preliminary_design.go:51
Function
NewBookingAppService
(bookingRepo BookingRepository, bookingDomainService BookingDomainService)
chapter4/booking_application_service.go:24
Function
NewCheckoutService
(shoppingCart *ShoppingCart)
chapter4/domain_service_after.go:9
Function
NewMailChimp
(apiKey string, from string, httpClient http.Client)
chapter4/email_service.go:36
Function
NewMongoRepo
(ctx context.Context, connectionString string)
chapter5/internal/store/repository.go:32
Function
NewMongoRepo
(ctx context.Context, connectionString string)
chapter5/internal/purchase/repository.go:27
Function
NewPostgresRepository
(ctx context.Context, dbConnString string)
chapter4/calendar_repository.go:19
Function
NewService
(repo Repository)
chapter5/internal/store/store.go:21
Function
NewService
(cardService CardChargeService, purchaseRepo Repository, storeService StoreService)
chapter5/internal/purchase/purchase.go:62
Function
NewSomeEntity
()
chapter3/uuid.go:9
Function
NewStripeService
(apiKey string)
chapter5/internal/payment/stripe.go:17
Method
Ping
(ctx context.Context)
chapter5/internal/store/repository.go:18
Method
Ping
(ctx context.Context)
chapter5/internal/store/repository.go:25
Method
Ping
(ctx context.Context)
chapter5/internal/purchase/repository.go:83
Method
Rollback
(ctx context.Context)
chapter7/saga.go:16
Method
Rollback
(ctx context.Context)
chapter7/saga.go:31
Method
SaveBooking
(ctx context.Context, booking Booking)
chapter4/calendar_repository.go:29
Method
SendEmail
(ctx context.Context, to string, title string, body string)
chapter4/email_service.go:12
Method
SendEmail
(ctx context.Context, to string, title string, body string)
chapter4/email_service.go:40
Method
SendEmailReceipt
SendEmailReceipt mocks base method.
chapter8/mocks/cookies.go:112
Method
SendEmailReceipt
SendEmailReceipt indicates an expected call of SendEmailReceipt.
chapter8/mocks/cookies.go:120
Method
SetAuctionEnd
(auctionEnd time.Time)
chapter3/refactored_auction_entity.go:27
next →
1–100 of 122, ranked by callers