mirror of
https://github.com/signaller-matrix/signaller.git
synced 2024-11-05 10:11:02 +00:00
23 lines
339 B
Go
23 lines
339 B
Go
package memory
|
|
|
|
type User struct {
|
|
id string
|
|
name string
|
|
password string
|
|
Tokens map[string]Token
|
|
|
|
backend *Backend
|
|
}
|
|
|
|
func (user *User) ID() string {
|
|
return "@" + user.id + ":" + user.backend.hostname
|
|
}
|
|
|
|
func (user *User) Name() string {
|
|
return user.name
|
|
}
|
|
|
|
func (user *User) Password() string {
|
|
return user.password
|
|
}
|