コード例 #1
0
ファイル: store.go プロジェクト: steelannelida/tinode-chat
func (TopicsObjMapper) Update(topic string, update map[string]interface{}) error {
	update["UpdatedAt"] = types.TimeNow()
	return adaptr.TopicUpdate(topic, update)
}
コード例 #2
0
ファイル: store.go プロジェクト: steelannelida/tinode-chat
// Update changes values of user's subscription.
func (SubsObjMapper) Update(topic string, user types.Uid, update map[string]interface{}) error {
	update["UpdatedAt"] = types.TimeNow()
	return adaptr.SubsUpdate(topic, user, update)
}
コード例 #3
0
ファイル: store.go プロジェクト: steelannelida/tinode-chat
func (UsersObjMapper) Update(uid types.Uid, update map[string]interface{}) error {
	update["UpdatedAt"] = types.TimeNow()
	return adaptr.UserUpdate(uid, update)
}