user

package
v1.3.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2018 License: GPL-3.0 Imports: 3 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PasswordUser added in v0.10.0

type PasswordUser struct {
	User
	Password string
}

PasswordUser is a user that contains a user with a password. This type is primarily used in the user store to authenticate or register a user. This reduces the risk of the password getting accidentally to places it does not belong

type User

type User struct {
	DisplayName      string
	Name             string
	EMail            string
	RegistrationDate time.Time
}

The User struct contains information to represent a user in the system

func New

func New(display, name, email string) User

New creates a new user with the given display name, account name and email address. Returns the created user.

func (User) ID

func (u User) ID() id.ActorID

ID returns the ID struct identifying this user

Jump to

Keyboard shortcuts

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