Add auth-managed proxy UI improvements
This commit is contained in:
@ -2,6 +2,11 @@ package noodle
|
||||
|
||||
import "time"
|
||||
|
||||
const (
|
||||
UserRoleRegular = "regular"
|
||||
UserRoleAdmin = "admin"
|
||||
)
|
||||
|
||||
type Noodle struct {
|
||||
Id string
|
||||
Name string
|
||||
@ -12,4 +17,13 @@ type Noodle struct {
|
||||
DestHost string
|
||||
Expiration time.Duration
|
||||
IsUp bool
|
||||
CreatedBy string
|
||||
}
|
||||
|
||||
type User struct {
|
||||
Id string
|
||||
Username string
|
||||
Role string
|
||||
PasswordHash string
|
||||
CreatedAt time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user