MCPcopy Create free account

hub / github.com/ProgrammerZamanNow/belajar-golang-dependency-injection / functions

Functions107 in github.com/ProgrammerZamanNow/belajar-golang-dependency-injection

↓ 25 callersFunctionPanicIfError
(err error)
helper/error.go:3
↓ 10 callersMethodServeHTTP
(writer http.ResponseWriter, request *http.Request)
middleware/auth_middleware.go:17
↓ 10 callersFunctionsetupRouter
(db *sql.DB)
test/category_controller_test.go:39
↓ 10 callersFunctionsetupTestDB
()
test/category_controller_test.go:27
↓ 10 callersFunctiontruncateCategory
(db *sql.DB)
test/category_controller_test.go:49
↓ 9 callersFunctionWriteToResponseBody
(writer http.ResponseWriter, response interface{})
helper/json.go:14
↓ 7 callersFunctionNewCategoryRepository
()
repository/category_repository_impl.go:14
↓ 7 callersMethodSave
(ctx context.Context, tx *sql.Tx, category domain.Category)
repository/category_repository.go:10
↓ 5 callersFunctionCommitOrRollback
(tx *sql.Tx)
helper/tx.go:5
↓ 4 callersFunctionToCategoryResponse
(category domain.Category)
helper/model.go:8
↓ 3 callersMethodClose
()
simple/file.go:9
↓ 3 callersMethodFindById
(ctx context.Context, categoryId int)
service/category_service.go:12
↓ 3 callersFunctionNewNotFoundError
(error string)
exception/not_found_error.go:7
↓ 2 callersFunctionInitializedService
Injectors from injector.go:
simple/wire_gen.go:17
↓ 2 callersFunctionNewAuthMiddleware
(handler http.Handler)
middleware/auth_middleware.go:13
↓ 2 callersFunctionNewCategoryController
(categoryService service.CategoryService)
controller/category_controller_impl.go:16
↓ 2 callersFunctionNewCategoryService
(categoryRepository repository.CategoryRepository, DB *sql.DB, validate *validator.Validate)
service/category_service_impl.go:20
↓ 2 callersFunctionNewRouter
(categoryController controller.CategoryController)
app/router.go:9
↓ 2 callersFunctionReadFromRequestBody
(request *http.Request, result interface{})
helper/json.go:8
↓ 1 callersMethodClose
()
simple/connection.go:9
↓ 1 callersMethodCreate
(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
controller/category_controller.go:9
↓ 1 callersMethodDelete
(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
controller/category_controller.go:11
↓ 1 callersMethodDelete
(ctx context.Context, categoryId int)
service/category_service.go:11
↓ 1 callersMethodFindAll
(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
controller/category_controller.go:13
↓ 1 callersMethodFindAll
(ctx context.Context)
service/category_service.go:13
↓ 1 callersMethodFindById
(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
controller/category_controller.go:12
↓ 1 callersFunctionInitializedConnection
(name string)
simple/wire_gen.go:88
↓ 1 callersFunctionInitializedServer
Injectors from injector.go:
wire_gen.go:26
↓ 1 callersFunctionNewApplication
()
simple/configuration.go:11
↓ 1 callersFunctionNewBar
()
simple/foo_bar.go:13
↓ 1 callersFunctionNewBarRepository
()
simple/bar.go:6
↓ 1 callersFunctionNewBarService
(barRepository *BarRepository)
simple/bar.go:14
↓ 1 callersFunctionNewConnection
(file *File)
simple/connection.go:13
↓ 1 callersFunctionNewDB
()
app/database.go:9
↓ 1 callersFunctionNewDatabaseMongoDB
()
simple/database.go:10
↓ 1 callersFunctionNewDatabasePostgreSQL
()
simple/database.go:14
↓ 1 callersFunctionNewDatabaseRepository
( postgreSQL *DatabasePostgreSQL, mongodb *DatabaseMongoDB, )
simple/database.go:23
↓ 1 callersFunctionNewFile
(name string)
simple/file.go:13
↓ 1 callersFunctionNewFoo
()
simple/foo_bar.go:6
↓ 1 callersFunctionNewFooBarService
(fooService *FooService, barService *BarService)
simple/foobar.go:8
↓ 1 callersFunctionNewFooRepository
()
simple/foo.go:6
↓ 1 callersFunctionNewFooService
(fooRepository *FooRepository)
simple/foo.go:14
↓ 1 callersFunctionNewHelloService
(sayHello SayHello)
simple/hello.go:22
↓ 1 callersFunctionNewSayHelloImpl
()
simple/hello.go:18
↓ 1 callersFunctionNewServer
(authMiddleware *middleware.AuthMiddleware)
main.go:10
↓ 1 callersFunctionNewSimpleRepository
(isError bool)
simple/simple.go:9
↓ 1 callersFunctionNewSimpleService
(repository *SimpleRepository)
simple/simple.go:19
↓ 1 callersFunctionToCategoryResponses
(categories []domain.Category)
helper/model.go:15
↓ 1 callersMethodUpdate
(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
controller/category_controller.go:10
↓ 1 callersMethodUpdate
(ctx context.Context, request web.CategoryUpdateRequest)
service/category_service.go:10
↓ 1 callersFunctioninternalServerError
(writer http.ResponseWriter, request *http.Request, err interface{})
exception/error_handler.go:61
↓ 1 callersFunctionnotFoundError
(writer http.ResponseWriter, request *http.Request, err interface{})
exception/error_handler.go:42
↓ 1 callersFunctionvalidationErrors
(writer http.ResponseWriter, request *http.Request, err interface{})
exception/error_handler.go:23
MethodCreate
(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
controller/category_controller_impl.go:22
MethodCreate
(ctx context.Context, request web.CategoryCreateRequest)
service/category_service_impl.go:28
MethodCreate
(ctx context.Context, request web.CategoryCreateRequest)
service/category_service.go:9
MethodDelete
(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
controller/category_controller_impl.go:56
MethodDelete
(ctx context.Context, categoryId int)
service/category_service_impl.go:65
MethodDelete
(ctx context.Context, tx *sql.Tx, category domain.Category)
repository/category_repository_impl.go:38
MethodDelete
(ctx context.Context, tx *sql.Tx, category domain.Category)
repository/category_repository.go:12
FunctionErrorHandler
(writer http.ResponseWriter, request *http.Request, err interface{})
exception/error_handler.go:10
MethodFindAll
(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
controller/category_controller_impl.go:85
MethodFindAll
(ctx context.Context)
service/category_service_impl.go:91
MethodFindAll
(ctx context.Context, tx *sql.Tx)
repository/category_repository_impl.go:60
MethodFindAll
(ctx context.Context, tx *sql.Tx)
repository/category_repository.go:14
MethodFindById
(writer http.ResponseWriter, request *http.Request, params httprouter.Params)
controller/category_controller_impl.go:70
MethodFindById
(ctx context.Context, categoryId int)
service/category_service_impl.go:78
MethodFindById
(ctx context.Context, tx *sql.Tx, categoryId int)
repository/category_repository_impl.go:44
MethodFindById
(ctx context.Context, tx *sql.Tx, categoryId int)
repository/category_repository.go:13
MethodHello
(name string)
simple/hello.go:4
MethodHello
(name string)
simple/hello.go:14
FunctionInitializedConfiguration
()
simple/wire_gen.go:82
FunctionInitializedConfiguration
()
simple/injector.go:71
FunctionInitializedConnection
(name string)
simple/injector.go:79
FunctionInitializedDatabaseRepository
()
simple/wire_gen.go:26
FunctionInitializedDatabaseRepository
()
simple/injector.go:19
FunctionInitializedFooBar
()
simple/wire_gen.go:48
FunctionInitializedFooBar
()
simple/injector.go:53
FunctionInitializedFooBarService
()
simple/wire_gen.go:33
FunctionInitializedFooBarService
()
simple/injector.go:32
FunctionInitializedFooBarUsingValue
()
simple/wire_gen.go:58
FunctionInitializedFooBarUsingValue
()
simple/injector.go:61
FunctionInitializedHelloService
()
simple/wire_gen.go:42
FunctionInitializedHelloService
()
simple/injector.go:48
FunctionInitializedReader
()
simple/wire_gen.go:73
FunctionInitializedReader
()
simple/injector.go:66
FunctionInitializedServer
()
injector.go:27
FunctionInitializedService
(isError bool)
simple/injector.go:12
MethodSave
(ctx context.Context, tx *sql.Tx, category domain.Category)
repository/category_repository_impl.go:18
FunctionTestConnection
(t *testing.T)
test/file_test.go:9
FunctionTestCreateCategoryFailed
(t *testing.T)
test/category_controller_test.go:79
FunctionTestCreateCategorySuccess
(t *testing.T)
test/category_controller_test.go:53
FunctionTestDeleteCategoryFailed
(t *testing.T)
test/category_controller_test.go:260
FunctionTestDeleteCategorySuccess
(t *testing.T)
test/category_controller_test.go:228
FunctionTestGetCategoryFailed
(t *testing.T)
test/category_controller_test.go:205
FunctionTestGetCategorySuccess
(t *testing.T)
test/category_controller_test.go:172
FunctionTestListCategoriesSuccess
(t *testing.T)
test/category_controller_test.go:284
FunctionTestSimpleServiceError
(t *testing.T)
test/simple_service_test.go:9
FunctionTestSimpleServiceSuccess
(t *testing.T)
test/simple_service_test.go:15
FunctionTestUnauthorized
(t *testing.T)
test/category_controller_test.go:331
next →1–100 of 107, ranked by callers