Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Fs02/go-todo-backend
/ functions
Functions
81 in github.com/Fs02/go-todo-backend
⨍
Functions
81
◇
Types & classes
25
↓ 15 callers
Function
render
(w http.ResponseWriter, body interface{}, status int)
api/handler/handler.go:17
↓ 11 callers
Function
New
New Todos service.
todos/service.go:40
↓ 7 callers
Function
NewTodos
NewTodos handler.
api/handler/todos.go:150
↓ 6 callers
Method
Earn
(ctx context.Context, name string, count int)
scores/service.go:14
↓ 6 callers
Method
Update
(ctx context.Context, todo *Todo, changes rel.Changeset)
todos/service.go:22
↓ 5 callers
Function
Mock
Mock apply mock todo functions.
todos/todostest/todos.go:15
↓ 4 callers
Method
Create
(ctx context.Context, todo *Todo)
todos/service.go:21
↓ 4 callers
Method
Delete
(ctx context.Context, todo *Todo)
todos/service.go:23
↓ 4 callers
Function
New
New Scores service.
scores/service.go:26
↓ 4 callers
Method
Validate
Validate todo.
todos/todo.go:29
↓ 3 callers
Method
Add
Add a pinger.
api/handler/healthz.go:61
↓ 3 callers
Function
NewScore
NewScore handler.
api/handler/score.go:40
↓ 2 callers
Method
Clear
(ctx context.Context)
todos/service.go:24
↓ 2 callers
Function
MockCreate
MockCreate util.
todos/todostest/todos.go:35
↓ 2 callers
Function
MockSearch
MockSearch util.
todos/todostest/todos.go:24
↓ 2 callers
Function
MockUpdate
MockUpdate util.
todos/todostest/todos.go:46
↓ 2 callers
Function
NewHealthz
NewHealthz handler.
api/handler/healthz.go:66
↓ 2 callers
Method
Search
(ctx context.Context, todos *[]Todo, filter Filter)
todos/service.go:20
↓ 1 callers
Function
MockClear
MockClear util.
todos/todostest/todos.go:61
↓ 1 callers
Function
MockDelete
MockDelete util.
todos/todostest/todos.go:68
↓ 1 callers
Function
NewMux
NewMux api.
api/api.go:14
↓ 1 callers
Method
Ping
(ctx context.Context)
api/handler/healthz.go:14
↓ 1 callers
Function
gracefulShutdown
(ctx context.Context, server *http.Server, shutdown chan struct{})
cmd/api/main.go:88
↓ 1 callers
Function
initRepository
()
cmd/api/main.go:48
Method
Clear
(ctx context.Context)
todos/clear.go:13
Method
Clear
Clear provides a mock function with given fields: ctx
todos/todostest/service.go:20
Method
Clear
Clear handle DELETE /
api/handler/todos.go:118
Method
Create
(ctx context.Context, todo *Todo)
todos/create.go:16
Method
Create
Create provides a mock function with given fields: ctx, todo
todos/todostest/service.go:25
Method
Create
Create handle POST /
api/handler/todos.go:53
Method
Delete
(ctx context.Context, todo *Todo)
todos/delete.go:13
Method
Delete
Delete provides a mock function with given fields: ctx, todo
todos/todostest/service.go:39
Method
Destroy
Destroy handle DELETE /{ID}
api/handler/todos.go:107
Method
Earn
(ctx context.Context, name string, count int)
scores/earn.go:14
Method
Earn
Earn provides a mock function with given fields: ctx, name, count
scores/scorestest/service.go:17
Method
Index
Index handle GET /
api/handler/score.go:18
Method
Index
Index handle GET /.
api/handler/todos.go:33
Method
Load
Load is middleware that loads todos to context.
api/handler/todos.go:128
Method
MarshalJSON
MarshalJSON implement custom marshaller to marshal url.
todos/todo.go:40
Function
MigrateCreatePoints
MigrateCreatePoints definition
db/migrations/20203006230700_create_points.go:8
Function
MigrateCreateScores
MigrateCreateScores definition
db/migrations/20203006230600_create_scores.go:8
Function
MigrateCreateTodos
MigrateCreateTodos definition
db/migrations/20202806225100_create_todos.go:8
Method
Ping
(ctx context.Context)
api/handler/healthz_test.go:18
Method
Points
Points handle Get /points
api/handler/score.go:29
Function
RollbackCreatePoints
RollbackCreatePoints definition
db/migrations/20203006230700_create_points.go:22
Function
RollbackCreateScores
RollbackCreateScores definition
db/migrations/20203006230600_create_scores.go:18
Function
RollbackCreateTodos
RollbackCreateTodos definition
db/migrations/20202806225100_create_todos.go:22
Method
Search
(ctx context.Context, todos *[]Todo, filter Filter)
todos/search.go:19
Method
Search
Search provides a mock function with given fields: ctx, _a1, filter
todos/todostest/service.go:44
Method
Show
Show handle GET /
api/handler/healthz.go:29
Method
Show
Show handle GET /{ID}
api/handler/todos.go:75
Function
TestClear
(t *testing.T)
todos/clear_test.go:12
Function
TestCreate
(t *testing.T)
todos/create_test.go:13
Function
TestCreate_completed
(t *testing.T)
todos/create_test.go:31
Function
TestCreate_validateError
(t *testing.T)
todos/create_test.go:52
Function
TestDelete
(t *testing.T)
todos/delete_test.go:11
Function
TestEarn
(t *testing.T)
scores/earn_test.go:12
Function
TestEarn_findError
(t *testing.T)
scores/earn_test.go:50
Function
TestEarn_insertScore
(t *testing.T)
scores/earn_test.go:31
Function
TestHealthz_Show
(t *testing.T)
api/handler/healthz_test.go:22
Function
TestRender
(t *testing.T)
api/handler/handler_test.go:11
Function
TestScore_Index
(t *testing.T)
api/handler/score_test.go:14
Function
TestScore_Points
(t *testing.T)
api/handler/score_test.go:55
Function
TestSearch
(t *testing.T)
todos/search_test.go:12
Function
TestTodo_MarshalJSON
(t *testing.T)
todos/todo_test.go:27
Function
TestTodo_Validate
(t *testing.T)
todos/todo_test.go:14
Function
TestTodos_Clear
(t *testing.T)
api/handler/todos_test.go:336
Function
TestTodos_Create
(t *testing.T)
api/handler/todos_test.go:76
Function
TestTodos_Destroy
(t *testing.T)
api/handler/todos_test.go:288
Function
TestTodos_Index
(t *testing.T)
api/handler/todos_test.go:17
Function
TestTodos_Show
(t *testing.T)
api/handler/todos_test.go:143
Function
TestTodos_Update
(t *testing.T)
api/handler/todos_test.go:210
Function
TestUpdate
(t *testing.T)
todos/update_test.go:14
Function
TestUpdate_completed
(t *testing.T)
todos/update_test.go:35
Function
TestUpdate_uncompleted
(t *testing.T)
todos/update_test.go:59
Function
TestUpdate_validateError
(t *testing.T)
todos/update_test.go:83
Method
Update
(ctx context.Context, todo *Todo, changes rel.Changeset)
todos/update.go:16
Method
Update
Update provides a mock function with given fields: ctx, todo, changes
todos/todostest/service.go:58
Method
Update
Update handle PATCH /{ID}
api/handler/todos.go:85
Function
init
()
todos/todo_test.go:10
Function
main
()
cmd/api/main.go:25