models

package
v1.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 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

type GroupBinding struct {
	GroupID int64
	Name    string
}

GroupBinding holds the ID and name of a group binding.

type LoginUser

type LoginUser struct {
	ID             int64
	Salt           string
	HashedPassword string
	OrganisationID int64
}

LoginUser holds the fields returned by selectLoginUser that are actually used.

type Organisation

type Organisation struct {
	ID   int64
	Name string
}

type Session

type Session struct {
	SessionID     string
	RefreshID     string
	UserID        int64
	OrgID         int64
	Administrator bool
	Expires       int64
}

Session holds the fields scanned from a session query.

type User

type User struct {
	ID             int64
	OrganisationID int64
	Name           string
	Salt           string
	HashedPassword string
	Administrator  bool
}

type UserAuth

type UserAuth struct {
	Salt           string
	HashedPassword string
}

UserAuth holds the password-related fields returned by selectFullUser.

Jump to

Keyboard shortcuts

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