Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LAA-Software-Engineering/golang-rest-api-template
/ functions
Functions
337 in github.com/LAA-Software-Engineering/golang-rest-api-template
⨍
Functions
337
◇
Types & classes
38
Function
TestRequestIDPreserved
(t *testing.T)
pkg/middleware/request_id_test.go:39
Function
TestSetAPISecretKeyRejectsShortSecret
(t *testing.T)
pkg/middleware/api_key_test.go:26
Function
TestSetJWTSigningKeyAcceptsMinimumLength
(t *testing.T)
pkg/auth/auth_test.go:122
Function
TestSetJWTSigningKeyRejectsShortSecret
(t *testing.T)
pkg/auth/auth_test.go:114
Function
TestUpdateBookBindError
(t *testing.T)
pkg/api/books_test.go:385
Function
TestUpdateBookBumpsListCacheGen
(t *testing.T)
pkg/api/books_test.go:550
Function
TestUpdateBookDatabaseErrorOnUpdates
(t *testing.T)
pkg/api/books_test.go:505
Function
TestUpdateBookForbiddenWrongOwner
(t *testing.T)
pkg/api/books_test.go:358
Function
TestUpdateBookInvalidID
(t *testing.T)
pkg/api/books_test.go:310
Function
TestUpdateBookNotFound
(t *testing.T)
pkg/api/books_test.go:333
Function
TestUserJSONOmitsPassword
(t *testing.T)
pkg/models/user_test.go:9
Function
TestUserServiceLoginDBError
(t *testing.T)
pkg/service/user_service_test.go:62
Function
TestUserServiceLoginSuccess
(t *testing.T)
pkg/service/user_service_test.go:75
Function
TestUserServiceLoginUserNotFound
(t *testing.T)
pkg/service/user_service_test.go:38
Function
TestUserServiceLoginWrongPassword
(t *testing.T)
pkg/service/user_service_test.go:49
Function
TestUserServiceRegisterConflictDuplicatedKey
(t *testing.T)
pkg/service/user_service_test.go:93
Function
TestUserServiceRegisterSaveError
(t *testing.T)
pkg/service/user_service_test.go:104
Function
TestWrite
(t *testing.T)
pkg/httperr/httperr_test.go:13
Method
UpdateBook
(c *gin.Context)
pkg/api/books.go:32
Method
UpdateBook
UpdateBook godoc @Summary Replace a book by ID (PUT) @Description Replaces both title and author. Use PATCH for partial updates. @Tags books @Security
pkg/api/books.go:228
Method
UpdateFields
(id uint, title, author string)
pkg/service/book_service_test.go:50
Method
UpdateFields
UpdateFields mocks base method.
pkg/repository/mock_persistence.go:117
Method
UpdateFields
UpdateFields indicates an expected call of UpdateFields.
pkg/repository/mock_persistence.go:126
Function
init
()
pkg/middleware/jwt_auth_test.go:18
Function
init
()
pkg/auth/auth_test.go:14
Function
init
()
pkg/api/main_test.go:15
Function
init
()
docs/docs.go:682
Function
jwt_token
()
tests/e2e.py:112
Function
livez
(c *gin.Context)
pkg/api/probes.go:27
Function
main
()
cmd/server/main.go:64
Function
main
()
scripts/generate_key.go:8
Function
test_create_book
(jwt_token)
tests/e2e.py:116
Function
test_delete_book
(jwt_token)
tests/e2e.py:153
Function
test_get_book
(jwt_token)
tests/e2e.py:129
Function
test_get_books
(jwt_token)
tests/e2e.py:123
Function
test_patch_book_title_only
(jwt_token)
tests/e2e.py:144
Function
test_update_book
(jwt_token)
tests/e2e.py:136
← previous
301–337 of 337, ranked by callers