Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeUserID ¶
func MakeUserID(localpart string, server spec.ServerName) string
MakeUserID generates user ID from localpart & server name
func ParseUsernameParam ¶
ParseUsernameParam extracts localpart from usernameParam. usernameParam can either be a user ID or just the localpart/username. If serverName is passed, it is verified against the domain obtained from usernameParam (if present) Returns error in case of invalid usernameParam.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.