summary refs log tree commit diff stats
path: root/user/user.go
blob: a15d62542c520922661ce44ecf30390d35e24c62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package user

// User holds information about the user.
type User struct {
	id       string
	username string
	password string
}

// SetUsername will set the username.
func (u *User) SetUsername(username string) {
	u.username = username
}

// Username returns the username.
func (u *User) Username() string {
	return u.username
}

// SetPassword will set the password.
func (u *User) SetPassword(password string) {
	u.password = password
}

// Password returns the password.
func (u *User) Password() string {
	return u.password
}

// SetID will set the id.
func (u *User) SetID(id string) {
	u.id = id
}

// ID returns the id.
func (u *User) ID() string {
	return u.id
}