MCPcopy
hub / github.com/tinode/chat / UserUpdate

Method UserUpdate

server/db/adapter.go:51–51  ·  view source on GitHub ↗

UserUpdate updates user record

(uid t.Uid, update map[string]any)

Source from the content-addressed store, hash-verified

49 UserDelete(uid t.Uid, hard bool) error
50 // UserUpdate updates user record
51 UserUpdate(uid t.Uid, update map[string]any) error
52 // UserUpdateTags adds, removes, or resets user's tags
53 UserUpdateTags(uid t.Uid, add, remove, reset []string) ([]string, error)
54 // UserGetByCred returns user ID for the given validated credential.

Callers 7

UpdateLastSeenMethod · 0.65
UpdateMethod · 0.65
UpdateStateMethod · 0.65
TestUserUpdateFunction · 0.65
TestUserUpdateFunction · 0.65
TestUserUpdateFunction · 0.65
TestUserUpdateFunction · 0.65

Implementers 4

adapterserver/db/mongodb/adapter.go
adapterserver/db/postgres/adapter.go
adapterserver/db/rethinkdb/adapter.go
adapterserver/db/mysql/adapter.go

Calls

no outgoing calls

Tested by 4

TestUserUpdateFunction · 0.52
TestUserUpdateFunction · 0.52
TestUserUpdateFunction · 0.52
TestUserUpdateFunction · 0.52