auth

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Profile

type Profile struct {
	// UserID in the user table.
	UserID int64 `json:"userid"`
	// Domain (site) this profile is for.
	Domain string `json:"domain"`
	// Username displayed on the site.
	Username string `json:"username"`
}

Profile is used per domain.

type User

type User struct {
	// ID is a unique identifier in the database.
	ID uint64 `json:"id"`
	// Name is the username for logins and the default display name.
	Name string `json:"name"`
	// Email is used for verification and password retrieval.
	Email string `json:"email"`
	// Fullnames is the real name of the user in western order (first name
	// followed by middle names, ending in last names and everything else between).
	Fullnames []string `json:"fullnames,omitempty"`
	// Title if applicable.
	Title string `json:"title,omitempty"`
	// Phone number is optional.
	Phone string `json:"phone,omitempty"`
	// Address is optional.
	Address []string `json:"userid,omitempty"`
}

User structure for the main system.

Jump to

Keyboard shortcuts

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