signaller/internal/backends/memory/user.go

22 lines
324 B
Go
Raw Normal View History

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