signaller/internal/backends/memory/user.go

23 lines
339 B
Go
Raw Normal View History

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
}