profile

package
v0.0.0-...-7c1aaf1 Latest Latest
Warning

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

Go to latest
Published: May 27, 2024 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CollectErr = errors.New("Collect error:")
View Source
var QueryErr = errors.New("Query error:")

Functions

This section is empty.

Types

type Profile

type Profile struct {
	ID        uuid.UUID `json:"id" db:"id"`
	Name      string    `json:"name" db:"name"`
	Email     string    `json:"email" db:"email"`
	Password  string    `json:"-" db:"password"`
	Disabled  bool      `db:"disabled"`
	IsAdmin   bool      `db:"is_admin"`
	LastLogin time.Time `json:"last_login" db:"last_login"`
	Created   time.Time `json:"created" db:"created"`
	Updated   time.Time `json:"updated" db:"updated"`
	Remarks   string    `db:"remarks"`
	// contains filtered or unexported fields
}

func (*Profile) Delete

func (p *Profile) Delete()

func (*Profile) Get

func (p *Profile) Get(ctx context.Context) (profile Profile, err error)

Get profile by email(for logins) or id(for everything else)

func (*Profile) New

func (p *Profile) New(ctx context.Context) (id string, err error)

func (*Profile) Update

func (p *Profile) Update()

Jump to

Keyboard shortcuts

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