mirror of
https://codeberg.org/shroff/phylum.git
synced 2026-01-24 04:59:36 -06:00
26 lines
562 B
Go
26 lines
562 B
Go
package core
|
|
|
|
import "github.com/google/uuid"
|
|
|
|
type User interface {
|
|
ID() int32
|
|
Username() string
|
|
DisplayName() string
|
|
Root() uuid.UUID
|
|
Home() uuid.UUID
|
|
}
|
|
|
|
type user struct {
|
|
id int32
|
|
username string
|
|
displayName string
|
|
root uuid.UUID
|
|
home uuid.UUID
|
|
}
|
|
|
|
func (u user) ID() int32 { return u.id }
|
|
func (u user) Username() string { return u.username }
|
|
func (u user) DisplayName() string { return u.displayName }
|
|
func (u user) Root() uuid.UUID { return u.root }
|
|
func (u user) Home() uuid.UUID { return u.home }
|