pendinguser

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PendingUser

type PendingUser struct {
	ID        xid.ID `json:"id"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt *time.Time
	Name      string `json:"name"`
	Email     string `json:"email"`
	Secret    string
}

func (PendingUser) TableName

func (PendingUser) TableName() string

type PendingUserManager

type PendingUserManager interface {
	AddPendingUser(name, email string) error
	DecodePendingUser(r io.Reader) error
	FindPendingUser(id, token string) (PendingUser, error)
	DeletePendingUser(id string) error
	List() ([]PendingUser, error)
}

type PendingUserManagerImpl

type PendingUserManagerImpl struct {
	// contains filtered or unexported fields
}

func NewPendingUserManager

func NewPendingUserManager(repo PendingUserRepo, messenger messaging.Messenger, sender messaging.Sender, passwordEncoder passwords.PasswordEncoder, fromEmailAddress string) *PendingUserManagerImpl

func (*PendingUserManagerImpl) AddPendingUser

func (p *PendingUserManagerImpl) AddPendingUser(name, email string) error

func (*PendingUserManagerImpl) DecodePendingUser

func (p *PendingUserManagerImpl) DecodePendingUser(r io.Reader) error

func (*PendingUserManagerImpl) DeletePendingUser

func (p *PendingUserManagerImpl) DeletePendingUser(id string) error

func (*PendingUserManagerImpl) FindPendingUser

func (p *PendingUserManagerImpl) FindPendingUser(id, token string) (PendingUser, error)

func (*PendingUserManagerImpl) List

func (p *PendingUserManagerImpl) List() ([]PendingUser, error)

func (*PendingUserManagerImpl) SetRedeemTemplate

func (p *PendingUserManagerImpl) SetRedeemTemplate(redeem string) *PendingUserManagerImpl

func (*PendingUserManagerImpl) SetSubject

func (p *PendingUserManagerImpl) SetSubject(subject string) *PendingUserManagerImpl

type PendingUserRepo

type PendingUserRepo interface {
	Store(pu *PendingUser) error
	Find(id string) (*PendingUser, error)
	Delete(id string) error
	List() ([]PendingUser, error)
}

func NewPendingUserRepoImpl

func NewPendingUserRepoImpl(db *gorm.DB) PendingUserRepo

func NewPendingUserRepoSql

func NewPendingUserRepoSql(db *sql.DB, sbt squirrel.StatementBuilderType) PendingUserRepo

type PendingUserRepoImpl

type PendingUserRepoImpl struct {
	// contains filtered or unexported fields
}

func (*PendingUserRepoImpl) Delete

func (p *PendingUserRepoImpl) Delete(id string) error

func (*PendingUserRepoImpl) Find

func (p *PendingUserRepoImpl) Find(id string) (*PendingUser, error)

func (*PendingUserRepoImpl) List

func (p *PendingUserRepoImpl) List() ([]PendingUser, error)

func (*PendingUserRepoImpl) Store

func (p *PendingUserRepoImpl) Store(pu *PendingUser) error

type PendingUserRepoSql

type PendingUserRepoSql struct {
	// contains filtered or unexported fields
}

func (*PendingUserRepoSql) Delete

func (p *PendingUserRepoSql) Delete(id string) error

func (*PendingUserRepoSql) Find

func (p *PendingUserRepoSql) Find(id string) (*PendingUser, error)

func (*PendingUserRepoSql) List

func (p *PendingUserRepoSql) List() ([]PendingUser, error)

func (*PendingUserRepoSql) Store

func (p *PendingUserRepoSql) Store(pu *PendingUser) error

Jump to

Keyboard shortcuts

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