Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codersgyan/camp
/ functions
Functions
18 in github.com/codersgyan/camp
⨍
Functions
18
◇
Types & classes
4
↓ 7 callers
Method
CreateContactOrUpsertTags
(c *Contact)
internal/contact/repository.go:19
↓ 5 callers
Function
NewRepository
(db *sql.DB)
internal/contact/repository.go:13
↓ 4 callers
Function
setupDB
(t *testing.T)
internal/contact/repository_test.go:165
↓ 2 callers
Function
RunMigration
(db *sql.DB)
internal/database/migration.go:8
↓ 2 callers
Function
getTagsByTexts
(txn *sql.Tx, tags []Tag)
internal/contact/repository.go:147
↓ 2 callers
Function
insertTagIfNotExist
(txn *sql.Tx, tags []Tag)
internal/contact/repository.go:135
↓ 2 callers
Function
linkTagsToContact
(txn *sql.Tx, contactID int64, tags []Tag)
internal/contact/repository.go:185
↓ 1 callers
Function
Connect
(dbPath string)
internal/database/db.go:12
↓ 1 callers
Method
GetByEmail
(email string)
internal/contact/repository.go:99
↓ 1 callers
Function
NewHandler
(repo *Repository)
internal/contact/handler.go:13
↓ 1 callers
Function
createContact
(txn *sql.Tx, c *Contact)
internal/contact/repository.go:207
Method
Create
(w http.ResponseWriter, r *http.Request)
internal/contact/handler.go:17
Function
TestContactRepositoryCreate
(t *testing.T)
internal/contact/repository_test.go:20
Function
TestContactRepositoryCreateWithTags
(t *testing.T)
internal/contact/repository_test.go:44
Function
TestContactRepositoryThrowErrorIfTagsNotSent
(t *testing.T)
internal/contact/repository_test.go:120
Function
TestContactRepositoryUpsertWithTagsIfEmailExists
(t *testing.T)
internal/contact/repository_test.go:76
Function
TestMain
(m *testing.M)
internal/contact/repository_test.go:13
Function
main
()
cmd/camp/main.go:11