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

Method GetChannels

server/store/store.go:458–460  ·  view source on GitHub ↗

GetChannels returns a slice of group topic names where the user is a channel reader.

(id types.Uid)

Source from the content-addressed store, hash-verified

456
457// GetChannels returns a slice of group topic names where the user is a channel reader.
458func (usersMapper) GetChannels(id types.Uid) ([]string, error) {
459 return adp.ChannelsForUser(id)
460}
461
462// UpsertCred adds or updates a credential validation request. Return true if the record was inserted, false if updated.
463func (usersMapper) UpsertCred(cred *types.Credential) (bool, error) {

Callers

nothing calls this directly

Calls 1

ChannelsForUserMethod · 0.65

Tested by

no test coverage detected