inboxKey returns the plugin data identifier for a given userId.
(userId int)
| 121 | |
| 122 | // inboxKey returns the plugin data identifier for a given userId. |
| 123 | func inboxKey(userId int) string { |
| 124 | return fmt.Sprintf(`inbox-user-%d`, userId) |
| 125 | } |
| 126 | |
| 127 | // load reads a user's inbox from the plugin data store. |
| 128 | func (m *MudmailModule) load(userId int) Inbox { |