models

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 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

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 {
	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