account

package
v0.1.0-develop.3 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEmailExists         = errors.New("Account with email already exists")
	ErrPubkeyExists        = errors.New("Account with pubkey already exists")
	ErrQueryingAcct        = errors.New("Error querying accounts")
	ErrFailedHashPassword  = errors.New("Failed to hash password")
	ErrFailedCreateAccount = errors.New("Failed to create account")
)

Functions

func Register

func Register(email string, password string, pubkey string) error

Types

type User

type User struct {
	context.User
	// contains filtered or unexported fields
}

func NewUser

func NewUser(account *model.Account) *User

func (User) GetID

func (u User) GetID() (string, error)

Jump to

Keyboard shortcuts

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