Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ThreeDotsLabs/monolith-microservice-shop
/ functions
Functions
123 in github.com/ThreeDotsLabs/monolith-microservice-shop
⨍
Functions
123
◇
Types & classes
51
↓ 10 callers
Method
Close
()
pkg/orders/infrastructure/payments/amqp.go:77
↓ 8 callers
Method
ID
()
pkg/shop/domain/products/products.go:35
↓ 7 callers
Function
NewPrice
(cents uint, currency string)
pkg/common/price/price.go:15
↓ 7 callers
Method
Run
(ctx context.Context)
pkg/payments/interfaces/amqp/orders.go:57
↓ 6 callers
Method
ID
()
pkg/orders/domain/orders/order.go:17
↓ 6 callers
Method
Render
(w http.ResponseWriter, r *http.Request)
pkg/common/http/error.go:17
↓ 5 callers
Method
ByID
(ID)
pkg/orders/domain/orders/repository.go:9
↓ 5 callers
Method
Save
(*Order)
pkg/orders/domain/orders/repository.go:8
↓ 4 callers
Function
Context
()
pkg/common/cmd/signals.go:10
↓ 4 callers
Method
Get
(w http.ResponseWriter, r *http.Request)
pkg/shop/interfaces/private/http/products.go:40
↓ 4 callers
Method
MarkOrderAsPaid
(orderID string)
pkg/payments/application/payments.go:11
↓ 4 callers
Function
NewOrder
(id ID, product Product, address Address)
pkg/orders/domain/orders/order.go:37
↓ 4 callers
Function
NewProduct
(id ProductID, name string, price price.Price)
pkg/orders/domain/orders/product.go:19
↓ 4 callers
Method
Paid
()
pkg/orders/domain/orders/order.go:29
↓ 3 callers
Method
Cents
()
pkg/common/price/price.go:36
↓ 3 callers
Method
Close
()
pkg/payments/interfaces/intraprocess/orders.go:49
↓ 3 callers
Function
CreateRouter
()
pkg/common/cmd/router.go:8
↓ 3 callers
Method
Currency
()
pkg/common/price/price.go:40
↓ 3 callers
Method
Description
()
pkg/shop/domain/products/products.go:43
↓ 3 callers
Method
InitializeOrderPayment
(id orders.ID, price price.Price)
pkg/orders/application/orders.go:16
↓ 3 callers
Method
Name
()
pkg/shop/domain/products/products.go:39
↓ 3 callers
Function
NewAddress
(name string, street string, city string, postCode string, country string)
pkg/orders/domain/orders/address.go:13
↓ 3 callers
Function
NewPriceP
NewPriceP works as NewPrice, but on error it will panic instead of returning error.
pkg/common/price/price.go:27
↓ 3 callers
Function
NewProduct
(id ID, name string, description string, price price.Price)
pkg/shop/domain/products/products.go:24
↓ 3 callers
Method
Price
()
pkg/shop/domain/products/products.go:47
↓ 3 callers
Function
addOrder
(t *testing.T, repo *orders.MemoryRepository, id string)
pkg/orders/infrastructure/orders/memory_test.go:31
↓ 3 callers
Function
addProduct
(t *testing.T, repo *products.MemoryRepository, id string)
pkg/shop/infrastructure/products/memory_test.go:41
↓ 3 callers
Function
assertAllProducts
(t *testing.T, repo *products.MemoryRepository, expectedProducts []products_domain.Product)
pkg/shop/infrastructure/products/memory_test.go:34
↓ 3 callers
Function
createOrderContent
(t *testing.T)
pkg/orders/domain/orders/order_test.go:40
↓ 3 callers
Function
makeRequest
(t *testing.T, method string, path string, data interface{})
tests/acceptance_test.go:133
↓ 2 callers
Method
AddProduct
(cmd AddProductCommand)
pkg/shop/application/products.go:34
↓ 2 callers
Method
AllProducts
()
pkg/shop/interfaces/public/http/products.go:19
↓ 2 callers
Method
ByID
(id products.ID)
pkg/shop/infrastructure/products/memory.go:27
↓ 2 callers
Method
ByID
(id orders.ID)
pkg/orders/infrastructure/orders/memory.go:25
↓ 2 callers
Function
LoadShopFixtures
(productsService shop_app.ProductsService)
pkg/shop/fixtures.go:7
↓ 2 callers
Method
MarkAsPaid
()
pkg/orders/domain/orders/order.go:33
↓ 2 callers
Function
OrderProductFromIntraprocess
(shopProduct intraprocess.Product)
pkg/orders/infrastructure/shop/intraprocess.go:25
↓ 2 callers
Method
Post
(w http.ResponseWriter, r *http.Request)
pkg/orders/interfaces/public/http/orders.go:26
↓ 2 callers
Method
Product
()
pkg/orders/domain/orders/order.go:21
↓ 2 callers
Method
ProductByID
(id orders.ProductID)
pkg/orders/application/orders.go:12
↓ 2 callers
Function
ProductFromDomainProduct
(domainProduct products.Product)
pkg/shop/interfaces/private/intraprocess/products.go:16
↓ 2 callers
Function
WaitForService
(host string)
pkg/common/cmd/wait.go:9
↓ 1 callers
Method
Address
()
pkg/orders/domain/orders/order.go:25
↓ 1 callers
Method
AllProducts
()
pkg/shop/application/products.go:10
↓ 1 callers
Method
City
()
pkg/orders/domain/orders/address.go:41
↓ 1 callers
Method
Country
()
pkg/orders/domain/orders/address.go:49
↓ 1 callers
Method
Name
()
pkg/orders/domain/orders/address.go:33
↓ 1 callers
Function
NewMemoryRepository
()
pkg/shop/infrastructure/products/memory.go:11
↓ 1 callers
Function
NewMemoryRepository
()
pkg/orders/infrastructure/orders/memory.go:9
↓ 1 callers
Function
NewPaymentsInterface
(url string, queueName string, service application.PaymentsService)
pkg/payments/interfaces/amqp/orders.go:31
↓ 1 callers
Function
OrderProductFromHTTP
(shopProduct http_interface.ProductView)
pkg/orders/infrastructure/shop/http.go:46
↓ 1 callers
Function
OrderProductPriceFromHTTP
(priceView http_interface.PriceView)
pkg/orders/infrastructure/shop/http.go:55
↓ 1 callers
Method
PlaceOrder
(cmd PlaceOrderCommand)
pkg/orders/application/orders.go:45
↓ 1 callers
Method
PostCode
()
pkg/orders/domain/orders/address.go:45
↓ 1 callers
Method
PostOrderPayment
(orderID string)
pkg/payments/application/payments.go:40
↓ 1 callers
Method
Price
()
pkg/orders/domain/orders/product.go:35
↓ 1 callers
Method
Street
()
pkg/orders/domain/orders/address.go:37
↓ 1 callers
Function
createMonolith
(ordersToPay chan payments_interfaces_intraprocess.OrderToProcess)
cmd/monolith/main.go:54
↓ 1 callers
Function
createOrdersMicroservice
()
cmd/microservices/orders/main.go:42
↓ 1 callers
Function
createPaymentsMicroservice
()
cmd/microservices/payments/main.go:26
↓ 1 callers
Function
createShopMicroservice
()
cmd/microservices/shop/main.go:38
↓ 1 callers
Function
isOrderPaid
(t *testing.T, ordersServiceAddress string, orderID string)
tests/acceptance_test.go:58
↓ 1 callers
Function
placeOrder
(t *testing.T, ordersServiceAdddress string, productID string)
tests/acceptance_test.go:72
↓ 1 callers
Function
priceViewFromPrice
(p price.Price)
pkg/shop/interfaces/public/http/products.go:36
↓ 1 callers
Function
priceViewFromPrice
(p price.Price)
pkg/shop/interfaces/private/http/products.go:36
↓ 1 callers
Method
processMsg
(msg amqp.Delivery)
pkg/payments/interfaces/amqp/orders.go:94
Function
AddRoutes
(router *chi.Mux, productsReadModel productsReadModel)
pkg/shop/interfaces/public/http/products.go:13
Function
AddRoutes
(router *chi.Mux, repo products_domain.Repository)
pkg/shop/interfaces/private/http/products.go:13
Function
AddRoutes
(router *chi.Mux, service application.OrdersService, repository orders.Repository)
pkg/orders/interfaces/public/http/orders.go:14
Function
AddRoutes
(router *chi.Mux, service application.OrdersService, repository orders.Repository)
pkg/orders/interfaces/private/http/orders.go:13
Method
AllProducts
()
pkg/shop/infrastructure/products/memory.go:37
Method
AllProducts
()
pkg/shop/application/products.go:22
Method
ByID
(ID)
pkg/shop/domain/products/repository.go:9
Function
ErrBadRequest
(err error)
pkg/common/http/error.go:30
Function
ErrInternal
(err error)
pkg/common/http/error.go:22
Method
GetAll
(w http.ResponseWriter, r *http.Request)
pkg/shop/interfaces/public/http/products.go:44
Method
GetPaid
(w http.ResponseWriter, r *http.Request)
pkg/orders/interfaces/public/http/orders.go:71
Method
ID
()
pkg/orders/domain/orders/product.go:27
Method
InitializeOrderPayment
(id orders.ID, price price.Price)
pkg/orders/infrastructure/payments/intraprocess.go:17
Method
InitializeOrderPayment
(id orders.ID, price price.Price)
pkg/orders/infrastructure/payments/amqp.go:45
Method
InitializeOrderPayment
(orderID string, price price.Price)
pkg/payments/application/payments.go:22
Method
MarkOrderAsPaid
(cmd MarkOrderAsPaidCommand)
pkg/orders/application/orders.go:84
Method
MarkOrderAsPaid
(orderID string)
pkg/orders/interfaces/private/intraprocess/payments.go:16
Method
MarkOrderAsPaid
(orderID string)
pkg/payments/infrastructure/orders/http.go:18
Method
MarkOrderAsPaid
(orderID string)
pkg/payments/infrastructure/orders/intraprocess.go:13
Method
Name
()
pkg/orders/domain/orders/product.go:31
Function
NewAMQPService
(url, queueName string)
pkg/orders/infrastructure/payments/amqp.go:19
Function
NewHTTPClient
(address string)
pkg/orders/infrastructure/shop/http.go:19
Function
NewHTTPClient
(address string)
pkg/payments/infrastructure/orders/http.go:14
Function
NewIntraprocessService
(intraprocessInterface intraprocess.ProductInterface)
pkg/orders/infrastructure/shop/intraprocess.go:12
Function
NewIntraprocessService
(ordersChannel chan <- intraprocess.OrderToProcess)
pkg/orders/infrastructure/payments/intraprocess.go:13
Function
NewIntraprocessService
(paymentsInterface intraprocess.OrdersInterface)
pkg/payments/infrastructure/orders/intraprocess.go:9
Function
NewOrdersInterface
(service application.OrdersService)
pkg/orders/interfaces/private/intraprocess/payments.go:12
Function
NewOrdersService
(productsService productsService, paymentsService paymentsService, ordersRepository orders.Repository)
pkg/orders/application/orders.go:26
Function
NewPaymentsInterface
(orders <-chan OrderToProcess, service application.PaymentsService)
pkg/payments/interfaces/intraprocess/orders.go:23
Function
NewPaymentsService
(ordersService ordersService)
pkg/payments/application/payments.go:18
Function
NewProductInterface
(repo products.Repository)
pkg/shop/interfaces/private/intraprocess/products.go:29
Function
NewProductsService
(repo products.Repository, readModel productReadModel)
pkg/shop/application/products.go:18
Method
OrderByID
(id orders.ID)
pkg/orders/application/orders.go:101
Method
PostPaid
(w http.ResponseWriter, r *http.Request)
pkg/orders/interfaces/private/http/orders.go:24
next →
1–100 of 123, ranked by callers