Files
phylum/server/internal/core/user.go
Abhishek Shroff cb49ebbd62 Allow user chroot
2024-08-07 22:31:56 +05:30

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 }