MCPcopy Create free account
hub / github.com/tinode/chat / Get

Method Get

server/store/store.go:373–375  ·  view source on GitHub ↗

Get returns a user object for the given user ID or nil if the user is not found.

(uid types.Uid)

Source from the content-addressed store, hash-verified

371
372// Get returns a user object for the given user ID or nil if the user is not found.
373func (usersMapper) Get(uid types.Uid) (*types.User, error) {
374 return adp.UserGet(uid)
375}
376
377// GetAll returns a slice of user objects for the given user IDs.
378func (usersMapper) GetAll(uid ...types.Uid) ([]types.User, error) {

Callers

nothing calls this directly

Calls 1

UserGetMethod · 0.65

Tested by

no test coverage detected