Versions in this module Expand all Collapse all v0 v0.0.29 Mar 1, 2026 Changes in this version + const AuthTokenCookieContextKeyStr + type AdminLink struct + HtmxAware bool + Icon string + Path string + RequiredPermission string + Section string + Title string + type AdminLinkService interface + AddLink func(link AdminLink) + GetLinks func(r *http.Request) *AdminSectionLinks + type AdminPanelViewModel struct + OrgCount int64 + Recent []RecentUser + RoleCount int64 + UserCount int64 + type AdminRenderer interface + AddStyle func(css string) + Render func(w http.ResponseWriter, r *http.Request, component templ.Component) + type AdminSectionLinks struct + func (asl *AdminSectionLinks) Add(link AdminLink) + func (asl *AdminSectionLinks) Iter() iter.Seq2[string, []AdminLink] + type AuthToken struct + Email string + HardExpiry int64 + OrganizationId int64 + RequiresVerification bool + SoftExpiry int64 + TwoFactorRequired bool + UserId int64 + func (t *AuthToken) IsExpired() bool + func (t *AuthToken) ToAgent() string + func (t *AuthToken) ToUserIdentity() UserIdentity + func (t *AuthToken) Touch(updatedTime int64) + type AuthTokenCookie interface + IsExpired func() bool + ToUserIdentity func() UserIdentity + Touch func(unixSec int64) + type AuthTokenCookieContextKey string + type AuthTokenCookieManager interface + ClearAuthTokenCookie func(w http.ResponseWriter) + IdentityFromContext func(ctx context.Context) (UserIdentity, bool) + Middleware func(handler http.Handler) http.Handler + MiddlewareFunc func(handler http.HandlerFunc) http.HandlerFunc + ReadAuthTokenCookie func(r *http.Request) (bool, AuthToken, error) + TokenFromContext func(ctx context.Context) (AuthToken, bool) + WriteAuthTokenCookie func(w http.ResponseWriter, token AuthToken) error + type BaseViewModel struct + Fragment bool + Links *AdminSectionLinks + type CookieContextKey string + type IdentityContextKey string + type LoginViewModel struct + Error string + type OrganizationFormViewModel struct + Error string + FieldErrors map[string][]string + IsEdit bool + Organization *ubdata.Organization + type OrganizationOverviewViewModel struct + ID int64 + Name string + Roles []ubdata.ListRolesWithUserCountsRow + SystemName string + type OrganizationsPageViewModel struct + Organizations []ubdata.Organization + Query string + type RecentUser struct + DisplayName string + Email string + ID int64 + LastLogin int64 + type RoleFormViewModel struct + Error string + FieldErrors map[string][]string + IsEdit bool + Organizations []ubdata.Organization + Role *ubdata.RoleRow + SelectedOrg int64 + type RoleOverviewViewModel struct + ID int64 + Name string + OrganizationID int64 + SystemName string + type RolePermissionsViewModel struct + MemberSet map[string]bool + Permissions []string + RoleID int64 + type RoleUsersViewModel struct + MemberSet map[int64]bool + RoleID int64 + Users []ubdata.User + type Route struct + Api bool + Func http.HandlerFunc + Path string + RequiresAuthenticated bool + RequiresPermission string + type TwoFactorViewModel struct + Error string + UserID int64 + type UserFormViewModel struct + Error string + FieldErrors map[string][]string + IsEdit bool + User *ubdata.User + type UserIdentity struct + Email string + OrganizationID int64 + UserID int64 + func (u *UserIdentity) ToAgent() string + type UserOverviewViewModel struct + Disabled bool + DisplayName string + Email string + FailedLoginAttempts int64 + FirstName string + ID int64 + LastFailedLogin int64 + LastLogin int64 + LastName string + LoginCount int64 + Organizations []ubdata.Organization + SelectedOrganization int64 + Verified bool + type UserRolesViewModel struct + MemberSet map[int64]bool + OrgID int64 + Roles []ubdata.RoleRow + UserID int64 + type UsersPageViewModel struct + Query string + Users []ubdata.User