MCPcopy Create free account

hub / github.com/ThreeDotsLabs/monolith-microservice-shop / functions

Functions123 in github.com/ThreeDotsLabs/monolith-microservice-shop

↓ 10 callersMethodClose
()
pkg/orders/infrastructure/payments/amqp.go:77
↓ 8 callersMethodID
()
pkg/shop/domain/products/products.go:35
↓ 7 callersFunctionNewPrice
(cents uint, currency string)
pkg/common/price/price.go:15
↓ 7 callersMethodRun
(ctx context.Context)
pkg/payments/interfaces/amqp/orders.go:57
↓ 6 callersMethodID
()
pkg/orders/domain/orders/order.go:17
↓ 6 callersMethodRender
(w http.ResponseWriter, r *http.Request)
pkg/common/http/error.go:17
↓ 5 callersMethodByID
(ID)
pkg/orders/domain/orders/repository.go:9
↓ 5 callersMethodSave
(*Order)
pkg/orders/domain/orders/repository.go:8
↓ 4 callersFunctionContext
()
pkg/common/cmd/signals.go:10
↓ 4 callersMethodGet
(w http.ResponseWriter, r *http.Request)
pkg/shop/interfaces/private/http/products.go:40
↓ 4 callersMethodMarkOrderAsPaid
(orderID string)
pkg/payments/application/payments.go:11
↓ 4 callersFunctionNewOrder
(id ID, product Product, address Address)
pkg/orders/domain/orders/order.go:37
↓ 4 callersFunctionNewProduct
(id ProductID, name string, price price.Price)
pkg/orders/domain/orders/product.go:19
↓ 4 callersMethodPaid
()
pkg/orders/domain/orders/order.go:29
↓ 3 callersMethodCents
()
pkg/common/price/price.go:36
↓ 3 callersMethodClose
()
pkg/payments/interfaces/intraprocess/orders.go:49
↓ 3 callersFunctionCreateRouter
()
pkg/common/cmd/router.go:8
↓ 3 callersMethodCurrency
()
pkg/common/price/price.go:40
↓ 3 callersMethodDescription
()
pkg/shop/domain/products/products.go:43
↓ 3 callersMethodInitializeOrderPayment
(id orders.ID, price price.Price)
pkg/orders/application/orders.go:16
↓ 3 callersMethodName
()
pkg/shop/domain/products/products.go:39
↓ 3 callersFunctionNewAddress
(name string, street string, city string, postCode string, country string)
pkg/orders/domain/orders/address.go:13
↓ 3 callersFunctionNewPriceP
NewPriceP works as NewPrice, but on error it will panic instead of returning error.
pkg/common/price/price.go:27
↓ 3 callersFunctionNewProduct
(id ID, name string, description string, price price.Price)
pkg/shop/domain/products/products.go:24
↓ 3 callersMethodPrice
()
pkg/shop/domain/products/products.go:47
↓ 3 callersFunctionaddOrder
(t *testing.T, repo *orders.MemoryRepository, id string)
pkg/orders/infrastructure/orders/memory_test.go:31
↓ 3 callersFunctionaddProduct
(t *testing.T, repo *products.MemoryRepository, id string)
pkg/shop/infrastructure/products/memory_test.go:41
↓ 3 callersFunctionassertAllProducts
(t *testing.T, repo *products.MemoryRepository, expectedProducts []products_domain.Product)
pkg/shop/infrastructure/products/memory_test.go:34
↓ 3 callersFunctioncreateOrderContent
(t *testing.T)
pkg/orders/domain/orders/order_test.go:40
↓ 3 callersFunctionmakeRequest
(t *testing.T, method string, path string, data interface{})
tests/acceptance_test.go:133
↓ 2 callersMethodAddProduct
(cmd AddProductCommand)
pkg/shop/application/products.go:34
↓ 2 callersMethodAllProducts
()
pkg/shop/interfaces/public/http/products.go:19
↓ 2 callersMethodByID
(id products.ID)
pkg/shop/infrastructure/products/memory.go:27
↓ 2 callersMethodByID
(id orders.ID)
pkg/orders/infrastructure/orders/memory.go:25
↓ 2 callersFunctionLoadShopFixtures
(productsService shop_app.ProductsService)
pkg/shop/fixtures.go:7
↓ 2 callersMethodMarkAsPaid
()
pkg/orders/domain/orders/order.go:33
↓ 2 callersFunctionOrderProductFromIntraprocess
(shopProduct intraprocess.Product)
pkg/orders/infrastructure/shop/intraprocess.go:25
↓ 2 callersMethodPost
(w http.ResponseWriter, r *http.Request)
pkg/orders/interfaces/public/http/orders.go:26
↓ 2 callersMethodProduct
()
pkg/orders/domain/orders/order.go:21
↓ 2 callersMethodProductByID
(id orders.ProductID)
pkg/orders/application/orders.go:12
↓ 2 callersFunctionProductFromDomainProduct
(domainProduct products.Product)
pkg/shop/interfaces/private/intraprocess/products.go:16
↓ 2 callersFunctionWaitForService
(host string)
pkg/common/cmd/wait.go:9
↓ 1 callersMethodAddress
()
pkg/orders/domain/orders/order.go:25
↓ 1 callersMethodAllProducts
()
pkg/shop/application/products.go:10
↓ 1 callersMethodCity
()
pkg/orders/domain/orders/address.go:41
↓ 1 callersMethodCountry
()
pkg/orders/domain/orders/address.go:49
↓ 1 callersMethodName
()
pkg/orders/domain/orders/address.go:33
↓ 1 callersFunctionNewMemoryRepository
()
pkg/shop/infrastructure/products/memory.go:11
↓ 1 callersFunctionNewMemoryRepository
()
pkg/orders/infrastructure/orders/memory.go:9
↓ 1 callersFunctionNewPaymentsInterface
(url string, queueName string, service application.PaymentsService)
pkg/payments/interfaces/amqp/orders.go:31
↓ 1 callersFunctionOrderProductFromHTTP
(shopProduct http_interface.ProductView)
pkg/orders/infrastructure/shop/http.go:46
↓ 1 callersFunctionOrderProductPriceFromHTTP
(priceView http_interface.PriceView)
pkg/orders/infrastructure/shop/http.go:55
↓ 1 callersMethodPlaceOrder
(cmd PlaceOrderCommand)
pkg/orders/application/orders.go:45
↓ 1 callersMethodPostCode
()
pkg/orders/domain/orders/address.go:45
↓ 1 callersMethodPostOrderPayment
(orderID string)
pkg/payments/application/payments.go:40
↓ 1 callersMethodPrice
()
pkg/orders/domain/orders/product.go:35
↓ 1 callersMethodStreet
()
pkg/orders/domain/orders/address.go:37
↓ 1 callersFunctioncreateMonolith
(ordersToPay chan payments_interfaces_intraprocess.OrderToProcess)
cmd/monolith/main.go:54
↓ 1 callersFunctioncreateOrdersMicroservice
()
cmd/microservices/orders/main.go:42
↓ 1 callersFunctioncreatePaymentsMicroservice
()
cmd/microservices/payments/main.go:26
↓ 1 callersFunctioncreateShopMicroservice
()
cmd/microservices/shop/main.go:38
↓ 1 callersFunctionisOrderPaid
(t *testing.T, ordersServiceAddress string, orderID string)
tests/acceptance_test.go:58
↓ 1 callersFunctionplaceOrder
(t *testing.T, ordersServiceAdddress string, productID string)
tests/acceptance_test.go:72
↓ 1 callersFunctionpriceViewFromPrice
(p price.Price)
pkg/shop/interfaces/public/http/products.go:36
↓ 1 callersFunctionpriceViewFromPrice
(p price.Price)
pkg/shop/interfaces/private/http/products.go:36
↓ 1 callersMethodprocessMsg
(msg amqp.Delivery)
pkg/payments/interfaces/amqp/orders.go:94
FunctionAddRoutes
(router *chi.Mux, productsReadModel productsReadModel)
pkg/shop/interfaces/public/http/products.go:13
FunctionAddRoutes
(router *chi.Mux, repo products_domain.Repository)
pkg/shop/interfaces/private/http/products.go:13
FunctionAddRoutes
(router *chi.Mux, service application.OrdersService, repository orders.Repository)
pkg/orders/interfaces/public/http/orders.go:14
FunctionAddRoutes
(router *chi.Mux, service application.OrdersService, repository orders.Repository)
pkg/orders/interfaces/private/http/orders.go:13
MethodAllProducts
()
pkg/shop/infrastructure/products/memory.go:37
MethodAllProducts
()
pkg/shop/application/products.go:22
MethodByID
(ID)
pkg/shop/domain/products/repository.go:9
FunctionErrBadRequest
(err error)
pkg/common/http/error.go:30
FunctionErrInternal
(err error)
pkg/common/http/error.go:22
MethodGetAll
(w http.ResponseWriter, r *http.Request)
pkg/shop/interfaces/public/http/products.go:44
MethodGetPaid
(w http.ResponseWriter, r *http.Request)
pkg/orders/interfaces/public/http/orders.go:71
MethodID
()
pkg/orders/domain/orders/product.go:27
MethodInitializeOrderPayment
(id orders.ID, price price.Price)
pkg/orders/infrastructure/payments/intraprocess.go:17
MethodInitializeOrderPayment
(id orders.ID, price price.Price)
pkg/orders/infrastructure/payments/amqp.go:45
MethodInitializeOrderPayment
(orderID string, price price.Price)
pkg/payments/application/payments.go:22
MethodMarkOrderAsPaid
(cmd MarkOrderAsPaidCommand)
pkg/orders/application/orders.go:84
MethodMarkOrderAsPaid
(orderID string)
pkg/orders/interfaces/private/intraprocess/payments.go:16
MethodMarkOrderAsPaid
(orderID string)
pkg/payments/infrastructure/orders/http.go:18
MethodMarkOrderAsPaid
(orderID string)
pkg/payments/infrastructure/orders/intraprocess.go:13
MethodName
()
pkg/orders/domain/orders/product.go:31
FunctionNewAMQPService
(url, queueName string)
pkg/orders/infrastructure/payments/amqp.go:19
FunctionNewHTTPClient
(address string)
pkg/orders/infrastructure/shop/http.go:19
FunctionNewHTTPClient
(address string)
pkg/payments/infrastructure/orders/http.go:14
FunctionNewIntraprocessService
(intraprocessInterface intraprocess.ProductInterface)
pkg/orders/infrastructure/shop/intraprocess.go:12
FunctionNewIntraprocessService
(ordersChannel chan <- intraprocess.OrderToProcess)
pkg/orders/infrastructure/payments/intraprocess.go:13
FunctionNewIntraprocessService
(paymentsInterface intraprocess.OrdersInterface)
pkg/payments/infrastructure/orders/intraprocess.go:9
FunctionNewOrdersInterface
(service application.OrdersService)
pkg/orders/interfaces/private/intraprocess/payments.go:12
FunctionNewOrdersService
(productsService productsService, paymentsService paymentsService, ordersRepository orders.Repository)
pkg/orders/application/orders.go:26
FunctionNewPaymentsInterface
(orders <-chan OrderToProcess, service application.PaymentsService)
pkg/payments/interfaces/intraprocess/orders.go:23
FunctionNewPaymentsService
(ordersService ordersService)
pkg/payments/application/payments.go:18
FunctionNewProductInterface
(repo products.Repository)
pkg/shop/interfaces/private/intraprocess/products.go:29
FunctionNewProductsService
(repo products.Repository, readModel productReadModel)
pkg/shop/application/products.go:18
MethodOrderByID
(id orders.ID)
pkg/orders/application/orders.go:101
MethodPostPaid
(w http.ResponseWriter, r *http.Request)
pkg/orders/interfaces/private/http/orders.go:24
next →1–100 of 123, ranked by callers