usermodel

package
v1.6.22 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: AGPL-3.0 Imports: 3 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidUserEmailError = errors.New("user id must be non-empty and cannot start or end with spaces")
)

Functions

This section is empty.

Types

type CurrentUser

type CurrentUser struct {
	UserId UserId
	Owner  *ownermodel.Owner // Owner is the identifier used to store medias of the user. It might be nil.
}

type UserId

type UserId string

func NewUserId

func NewUserId(value string) UserId

func (UserId) IsValid

func (u UserId) IsValid() error

func (UserId) Value

func (u UserId) Value() string

Jump to

Keyboard shortcuts

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