GetUsers loads subscriptions for topic plus loads user.Public
(appid uint32, topic string, opts *types.BrowseOpt)
| 295 | |
| 296 | // GetUsers loads subscriptions for topic plus loads user.Public |
| 297 | func (TopicsObjMapper) GetUsers(appid uint32, topic string, opts *types.BrowseOpt) ([]types.Subscription, error) { |
| 298 | // Limit the number of subscriptions per topic |
| 299 | if opts == nil { |
| 300 | opts = &types.BrowseOpt{Limit: MAX_USERS_FOR_TOPIC} |
| 301 | } |
| 302 | return adaptr.UsersForTopic(appid, topic, opts) |
| 303 | } |
| 304 | |
| 305 | // GetSubs loads a list of subscriptions to the given topic, user.Public is not loaded |
| 306 | func (TopicsObjMapper) GetSubs(appid uint32, topic string, opts *types.BrowseOpt) ([]types.Subscription, error) { |
no test coverage detected