Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codeedu/fc2-arquitetura-hexagonal
/ functions
Functions
106 in github.com/codeedu/fc2-arquitetura-hexagonal
⨍
Functions
106
◇
Types & classes
20
↓ 10 callers
Method
GetName
()
application/product.go:19
↓ 9 callers
Method
Get
(id string)
application/product.go:33
↓ 8 callers
Method
GetPrice
()
application/product.go:21
↓ 8 callers
Method
GetStatus
()
application/product.go:20
↓ 8 callers
Function
jsonError
(msg string)
adapters/web/handler/error_json.go:5
↓ 6 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
application/mocks/application.go:33
↓ 6 callers
Method
GetID
()
application/product.go:18
↓ 6 callers
Method
IsValid
()
application/product.go:65
↓ 5 callers
Method
Disable
()
application/product.go:17
↓ 5 callers
Method
Enable
()
application/product.go:16
↓ 5 callers
Function
Run
(service application.ProductServiceInterface, action string, productId string, productName string, price float
adapters/cli/product.go:8
↓ 5 callers
Method
Save
(product ProductInterface)
application/product.go:37
↓ 4 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
application/mocks/application.go:169
↓ 3 callers
Method
Create
(name string, price float64)
application/product.go:27
↓ 3 callers
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
application/mocks/application.go:328
↓ 2 callers
Method
Disable
()
application/product.go:105
↓ 2 callers
Method
Enable
()
application/product.go:85
↓ 2 callers
Function
NewProduct
()
application/product.go:57
↓ 2 callers
Function
NewProductDb
(db *sql.DB)
adapters/db/product.go:14
↓ 2 callers
Method
Save
(product application.ProductInterface)
adapters/db/product.go:31
↓ 2 callers
Function
setUp
()
adapters/db/product_test.go:14
↓ 1 callers
Method
ChangePrice
(price float64)
application/product.go:22
↓ 1 callers
Method
Create
(name string, price float64)
application/product_service.go:19
↓ 1 callers
Method
Disable
(product ProductInterface)
application/product_service.go:46
↓ 1 callers
Method
Enable
(product ProductInterface)
application/product_service.go:34
↓ 1 callers
Function
Execute
Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the r
cmd/root.go:53
↓ 1 callers
Method
Get
(id string)
adapters/db/product.go:18
↓ 1 callers
Method
Get
(id string)
application/product_service.go:11
↓ 1 callers
Method
IsValid
()
application/product.go:15
↓ 1 callers
Function
MakeProductHandlers
(r *mux.Router, n *negroni.Negroni, service application.ProductServiceInterface)
adapters/web/handler/product.go:13
↓ 1 callers
Method
Serve
()
adapters/web/server/server.go:22
↓ 1 callers
Method
create
(product application.ProductInterface)
adapters/db/product.go:48
↓ 1 callers
Function
createProduct
(service application.ProductServiceInterface)
adapters/web/handler/product.go:46
↓ 1 callers
Function
createProduct
(db *sql.DB)
adapters/db/product_test.go:34
↓ 1 callers
Function
createTable
(db *sql.DB)
adapters/db/product_test.go:20
↓ 1 callers
Function
disableProduct
(service application.ProductServiceInterface)
adapters/web/handler/product.go:95
↓ 1 callers
Function
enableProduct
(service application.ProductServiceInterface)
adapters/web/handler/product.go:71
↓ 1 callers
Function
getProduct
(service application.ProductServiceInterface)
adapters/web/handler/product.go:28
↓ 1 callers
Method
update
(product application.ProductInterface)
adapters/db/product.go:69
Method
Bind
(product *application.Product)
adapters/dto/product.go:16
Method
ChangePrice
(price float64)
application/product.go:93
Method
ChangePrice
ChangePrice mocks base method.
application/mocks/application.go:38
Method
ChangePrice
ChangePrice indicates an expected call of ChangePrice.
application/mocks/application.go:46
Method
Create
Create mocks base method.
application/mocks/application.go:174
Method
Create
Create indicates an expected call of Create.
application/mocks/application.go:183
Method
Disable
(product ProductInterface)
application/product.go:29
Method
Disable
Disable mocks base method.
application/mocks/application.go:52
Method
Disable
Disable indicates an expected call of Disable.
application/mocks/application.go:60
Method
Disable
Disable mocks base method.
application/mocks/application.go:189
Method
Disable
Disable indicates an expected call of Disable.
application/mocks/application.go:198
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
application/mocks/application.go:252
Method
EXPECT
EXPECT returns an object that allows the caller to indicate expected use.
application/mocks/application.go:290
Method
Enable
(product ProductInterface)
application/product.go:28
Method
Enable
Enable mocks base method.
application/mocks/application.go:66
Method
Enable
Enable indicates an expected call of Enable.
application/mocks/application.go:74
Method
Enable
Enable mocks base method.
application/mocks/application.go:204
Method
Enable
Enable indicates an expected call of Enable.
application/mocks/application.go:213
Method
Get
(id string)
application/product.go:26
Method
Get
Get mocks base method.
application/mocks/application.go:219
Method
Get
Get indicates an expected call of Get.
application/mocks/application.go:228
Method
Get
Get mocks base method.
application/mocks/application.go:257
Method
Get
Get indicates an expected call of Get.
application/mocks/application.go:266
Method
Get
Get mocks base method.
application/mocks/application.go:333
Method
Get
Get indicates an expected call of Get.
application/mocks/application.go:342
Method
GetID
()
application/product.go:113
Method
GetID
GetID mocks base method.
application/mocks/application.go:80
Method
GetID
GetID indicates an expected call of GetID.
application/mocks/application.go:88
Method
GetName
()
application/product.go:117
Method
GetName
GetName mocks base method.
application/mocks/application.go:94
Method
GetName
GetName indicates an expected call of GetName.
application/mocks/application.go:102
Method
GetPrice
()
application/product.go:125
Method
GetPrice
GetPrice mocks base method.
application/mocks/application.go:108
Method
GetPrice
GetPrice indicates an expected call of GetPrice.
application/mocks/application.go:116
Method
GetStatus
()
application/product.go:121
Method
GetStatus
GetStatus mocks base method.
application/mocks/application.go:122
Method
GetStatus
GetStatus indicates an expected call of GetStatus.
application/mocks/application.go:130
Method
IsValid
IsValid mocks base method.
application/mocks/application.go:136
Method
IsValid
IsValid indicates an expected call of IsValid.
application/mocks/application.go:145
Function
MakeNewWebserver
()
adapters/web/server/server.go:18
Function
NewMockProductInterface
NewMockProductInterface creates a new mock instance.
application/mocks/application.go:26
Function
NewMockProductPersistenceInterface
NewMockProductPersistenceInterface creates a new mock instance.
application/mocks/application.go:321
Function
NewMockProductReader
NewMockProductReader creates a new mock instance.
application/mocks/application.go:245
Function
NewMockProductServiceInterface
NewMockProductServiceInterface creates a new mock instance.
application/mocks/application.go:162
Function
NewMockProductWriter
NewMockProductWriter creates a new mock instance.
application/mocks/application.go:283
Function
NewProduct
()
adapters/dto/product.go:12
Function
NewProductService
(persistence ProductPersistenceInterface)
application/product_service.go:7
Method
Save
Save mocks base method.
application/mocks/application.go:295
Method
Save
Save indicates an expected call of Save.
application/mocks/application.go:304
Method
Save
Save mocks base method.
application/mocks/application.go:348
Method
Save
Save indicates an expected call of Save.
application/mocks/application.go:357
Function
TestHandler_jsonError
(t *testing.T)
adapters/web/handler/error_json_test.go:8
Function
TestProductDb_Get
(t *testing.T)
adapters/db/product_test.go:43
Function
TestProductDb_Save
(t *testing.T)
adapters/db/product_test.go:54
Function
TestProductService_Create
(t *testing.T)
application/product_service_test.go:25
Function
TestProductService_EnableDisable
(t *testing.T)
application/product_service_test.go:38
Function
TestProductService_Get
(t *testing.T)
application/product_service_test.go:11
Function
TestProduct_Disable
(t *testing.T)
application/product_test.go:24
Function
TestProduct_Enable
(t *testing.T)
application/product_test.go:10
Function
TestProduct_IsValid
(t *testing.T)
application/product_test.go:38
Function
TestRun
(t *testing.T)
adapters/cli/product_test.go:12
next →
1–100 of 106, ranked by callers