MCPcopy Create free account

hub / github.com/Fs02/go-todo-backend / functions

Functions81 in github.com/Fs02/go-todo-backend

↓ 15 callersFunctionrender
(w http.ResponseWriter, body interface{}, status int)
api/handler/handler.go:17
↓ 11 callersFunctionNew
New Todos service.
todos/service.go:40
↓ 7 callersFunctionNewTodos
NewTodos handler.
api/handler/todos.go:150
↓ 6 callersMethodEarn
(ctx context.Context, name string, count int)
scores/service.go:14
↓ 6 callersMethodUpdate
(ctx context.Context, todo *Todo, changes rel.Changeset)
todos/service.go:22
↓ 5 callersFunctionMock
Mock apply mock todo functions.
todos/todostest/todos.go:15
↓ 4 callersMethodCreate
(ctx context.Context, todo *Todo)
todos/service.go:21
↓ 4 callersMethodDelete
(ctx context.Context, todo *Todo)
todos/service.go:23
↓ 4 callersFunctionNew
New Scores service.
scores/service.go:26
↓ 4 callersMethodValidate
Validate todo.
todos/todo.go:29
↓ 3 callersMethodAdd
Add a pinger.
api/handler/healthz.go:61
↓ 3 callersFunctionNewScore
NewScore handler.
api/handler/score.go:40
↓ 2 callersMethodClear
(ctx context.Context)
todos/service.go:24
↓ 2 callersFunctionMockCreate
MockCreate util.
todos/todostest/todos.go:35
↓ 2 callersFunctionMockSearch
MockSearch util.
todos/todostest/todos.go:24
↓ 2 callersFunctionMockUpdate
MockUpdate util.
todos/todostest/todos.go:46
↓ 2 callersFunctionNewHealthz
NewHealthz handler.
api/handler/healthz.go:66
↓ 2 callersMethodSearch
(ctx context.Context, todos *[]Todo, filter Filter)
todos/service.go:20
↓ 1 callersFunctionMockClear
MockClear util.
todos/todostest/todos.go:61
↓ 1 callersFunctionMockDelete
MockDelete util.
todos/todostest/todos.go:68
↓ 1 callersFunctionNewMux
NewMux api.
api/api.go:14
↓ 1 callersMethodPing
(ctx context.Context)
api/handler/healthz.go:14
↓ 1 callersFunctiongracefulShutdown
(ctx context.Context, server *http.Server, shutdown chan struct{})
cmd/api/main.go:88
↓ 1 callersFunctioninitRepository
()
cmd/api/main.go:48
MethodClear
(ctx context.Context)
todos/clear.go:13
MethodClear
Clear provides a mock function with given fields: ctx
todos/todostest/service.go:20
MethodClear
Clear handle DELETE /
api/handler/todos.go:118
MethodCreate
(ctx context.Context, todo *Todo)
todos/create.go:16
MethodCreate
Create provides a mock function with given fields: ctx, todo
todos/todostest/service.go:25
MethodCreate
Create handle POST /
api/handler/todos.go:53
MethodDelete
(ctx context.Context, todo *Todo)
todos/delete.go:13
MethodDelete
Delete provides a mock function with given fields: ctx, todo
todos/todostest/service.go:39
MethodDestroy
Destroy handle DELETE /{ID}
api/handler/todos.go:107
MethodEarn
(ctx context.Context, name string, count int)
scores/earn.go:14
MethodEarn
Earn provides a mock function with given fields: ctx, name, count
scores/scorestest/service.go:17
MethodIndex
Index handle GET /
api/handler/score.go:18
MethodIndex
Index handle GET /.
api/handler/todos.go:33
MethodLoad
Load is middleware that loads todos to context.
api/handler/todos.go:128
MethodMarshalJSON
MarshalJSON implement custom marshaller to marshal url.
todos/todo.go:40
FunctionMigrateCreatePoints
MigrateCreatePoints definition
db/migrations/20203006230700_create_points.go:8
FunctionMigrateCreateScores
MigrateCreateScores definition
db/migrations/20203006230600_create_scores.go:8
FunctionMigrateCreateTodos
MigrateCreateTodos definition
db/migrations/20202806225100_create_todos.go:8
MethodPing
(ctx context.Context)
api/handler/healthz_test.go:18
MethodPoints
Points handle Get /points
api/handler/score.go:29
FunctionRollbackCreatePoints
RollbackCreatePoints definition
db/migrations/20203006230700_create_points.go:22
FunctionRollbackCreateScores
RollbackCreateScores definition
db/migrations/20203006230600_create_scores.go:18
FunctionRollbackCreateTodos
RollbackCreateTodos definition
db/migrations/20202806225100_create_todos.go:22
MethodSearch
(ctx context.Context, todos *[]Todo, filter Filter)
todos/search.go:19
MethodSearch
Search provides a mock function with given fields: ctx, _a1, filter
todos/todostest/service.go:44
MethodShow
Show handle GET /
api/handler/healthz.go:29
MethodShow
Show handle GET /{ID}
api/handler/todos.go:75
FunctionTestClear
(t *testing.T)
todos/clear_test.go:12
FunctionTestCreate
(t *testing.T)
todos/create_test.go:13
FunctionTestCreate_completed
(t *testing.T)
todos/create_test.go:31
FunctionTestCreate_validateError
(t *testing.T)
todos/create_test.go:52
FunctionTestDelete
(t *testing.T)
todos/delete_test.go:11
FunctionTestEarn
(t *testing.T)
scores/earn_test.go:12
FunctionTestEarn_findError
(t *testing.T)
scores/earn_test.go:50
FunctionTestEarn_insertScore
(t *testing.T)
scores/earn_test.go:31
FunctionTestHealthz_Show
(t *testing.T)
api/handler/healthz_test.go:22
FunctionTestRender
(t *testing.T)
api/handler/handler_test.go:11
FunctionTestScore_Index
(t *testing.T)
api/handler/score_test.go:14
FunctionTestScore_Points
(t *testing.T)
api/handler/score_test.go:55
FunctionTestSearch
(t *testing.T)
todos/search_test.go:12
FunctionTestTodo_MarshalJSON
(t *testing.T)
todos/todo_test.go:27
FunctionTestTodo_Validate
(t *testing.T)
todos/todo_test.go:14
FunctionTestTodos_Clear
(t *testing.T)
api/handler/todos_test.go:336
FunctionTestTodos_Create
(t *testing.T)
api/handler/todos_test.go:76
FunctionTestTodos_Destroy
(t *testing.T)
api/handler/todos_test.go:288
FunctionTestTodos_Index
(t *testing.T)
api/handler/todos_test.go:17
FunctionTestTodos_Show
(t *testing.T)
api/handler/todos_test.go:143
FunctionTestTodos_Update
(t *testing.T)
api/handler/todos_test.go:210
FunctionTestUpdate
(t *testing.T)
todos/update_test.go:14
FunctionTestUpdate_completed
(t *testing.T)
todos/update_test.go:35
FunctionTestUpdate_uncompleted
(t *testing.T)
todos/update_test.go:59
FunctionTestUpdate_validateError
(t *testing.T)
todos/update_test.go:83
MethodUpdate
(ctx context.Context, todo *Todo, changes rel.Changeset)
todos/update.go:16
MethodUpdate
Update provides a mock function with given fields: ctx, todo, changes
todos/todostest/service.go:58
MethodUpdate
Update handle PATCH /{ID}
api/handler/todos.go:85
Functioninit
()
todos/todo_test.go:10
Functionmain
()
cmd/api/main.go:25