models

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 7, 2026 License: MIT Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClaimRow added in v0.2.0

type ClaimRow struct {
	Name  string
	Value string
}

ClaimRow is a single displayable claim (name/value) for a user.

type ClientsModel

type ClientsModel struct {
}

type ErrorModel

type ErrorModel struct {
	Code    string
	Message string
}

type IndexModel

type IndexModel struct {
	Urls    []UrlInfo
	Clients []*configuration.ClientConfig
}

type UrlInfo

type UrlInfo struct {
	Description string
	Url         string
}

type UserLoginModel

type UserLoginModel struct {
	Error         string
	AuthRequestID string
	Users         []UserOption
}

type UserOption

type UserOption struct {
	ID          string
	DisplayName string
}

type UserView added in v0.2.0

type UserView struct {
	Subject      string
	LoginDisplay string
	Claims       []ClaimRow
}

UserView is a user prepared for display, with its claims flattened into an ordered list of name/value rows (including any custom claims).

type UsersModel

type UsersModel struct {
	Users []UserView
}

func NewUsersModel added in v0.2.0

func NewUsersModel(users []*configuration.User) UsersModel

NewUsersModel builds the users view model from the configured users, flattening each user's claims into ordered rows so they can be rendered without the UI needing to know about every individual claim field.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL