MCPcopy Create free account
hub / github.com/GoMudEngine/GoMud / inboxKey

Function inboxKey

modules/mudmail/mudmail.go:123–125  ·  view source on GitHub ↗

inboxKey returns the plugin data identifier for a given userId.

(userId int)

Source from the content-addressed store, hash-verified

121
122// inboxKey returns the plugin data identifier for a given userId.
123func 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.
128func (m *MudmailModule) load(userId int) Inbox {

Callers 2

loadMethod · 0.85
saveMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected