Documentation
¶
Index ¶
- type PendingUser
- type PendingUserManager
- type PendingUserManagerImpl
- func (p *PendingUserManagerImpl) AddPendingUser(name, email string) error
- func (p *PendingUserManagerImpl) DecodePendingUser(r io.Reader) error
- func (p *PendingUserManagerImpl) DeletePendingUser(id string) error
- func (p *PendingUserManagerImpl) FindPendingUser(id, token string) (PendingUser, error)
- func (p *PendingUserManagerImpl) List() ([]PendingUser, error)
- func (p *PendingUserManagerImpl) SetRedeemTemplate(redeem string) *PendingUserManagerImpl
- func (p *PendingUserManagerImpl) SetSubject(subject string) *PendingUserManagerImpl
- type PendingUserRepo
- type PendingUserRepoImpl
- type PendingUserRepoSql
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 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
Click to show internal directories.
Click to hide internal directories.