signaller/internal/backends/memory/user.go
2019-07-21 16:04:02 +05:00

22 lines
324 B
Go

package memory
type User struct {
name string
password string
Tokens map[string]Token
backend *Backend
}
func (user *User) ID() string {
return "@" + user.name + ":" + user.backend.hostname
}
func (user *User) Name() string {
return user.name
}
func (user *User) Password() string {
return user.password
}