model

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GroupBinding added in v0.9.0

type GroupBinding struct {
	GroupID int64
	Name    string
}

GroupBinding represents a single user↔group association.

type Session added in v0.8.1

type Session struct {
	UserID    int64
	SessionID string
	IsSuper   bool
	Expires   int64

	// Permissions is populated for non-superusers to hold the permission IDs derived from their group memberships.
	// This is done at session validation time to avoid a database query on every request to fetch the user's permissions.
	Permissions []int64
}

type SuperuserLoginUser added in v0.9.0

type SuperuserLoginUser struct {
	ID             int64
	Salt           string
	HashedPassword string
}

SuperuserLoginUser holds the fields required to authenticate a superuser.

type User

type User struct {
	ID             int64
	Username       string
	Salt           string
	HashedPassword string
}

type UserAuth added in v0.9.0

type UserAuth struct {
	Salt           string
	HashedPassword string
}

UserAuth holds authentication credentials for password verification / update.

Jump to

Keyboard shortcuts

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