model

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2026 License: BSD-3-Clause Imports: 0 Imported by: 0 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 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
	RefreshID string
	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