Documentation ¶
Index ¶
- Variables
- type Domain
- func (domain *Domain) Create(ctx context.Context, user *user_pb.Account, salt string, password string) error
- func (domain *Domain) CreateSession(ctx context.Context, sess *user_pb.Session) error
- func (domain *Domain) CreateToken(ctx context.Context, userId, token string) (string, error)
- func (domain *Domain) Delete(ctx context.Context, id string) error
- func (domain *Domain) DeletePasswordRestCode(ctx context.Context, userId, code string) error
- func (domain *Domain) DeleteSession(ctx context.Context, id string) error
- func (domain *Domain) List(ctx context.Context, o, l int32) ([]*user_pb.Account, error)
- func (domain *Domain) Read(ctx context.Context, userId string) (*user_pb.Account, error)
- func (domain *Domain) ReadPasswordResetCode(ctx context.Context, userId, code string) (*passwordResetCode, error)
- func (domain *Domain) ReadSession(ctx context.Context, id string) (*user_pb.Session, error)
- func (domain *Domain) ReadToken(ctx context.Context, userId, token string) (string, error)
- func (domain *Domain) SaltAndPassword(ctx context.Context, userId string) (string, string, error)
- func (domain *Domain) SavePasswordResetCode(ctx context.Context, userID, code string) (*passwordResetCode, error)
- func (domain *Domain) Search(ctx context.Context, username, email string) ([]*user_pb.Account, error)
- func (domain *Domain) SendEmail(...) error
- func (domain *Domain) SendPasswordResetEmail(ctx context.Context, ...) error
- func (domain *Domain) Update(ctx context.Context, user *user_pb.Account) error
- func (domain *Domain) UpdatePassword(ctx context.Context, id string, salt string, password string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = errors.New("not found")
)
Functions ¶
This section is empty.
Types ¶
type Domain ¶
type Domain struct {
// contains filtered or unexported fields
}
func (*Domain) CreateSession ¶
func (*Domain) CreateToken ¶
CreateToken returns the created and saved token
func (*Domain) DeletePasswordRestCode ¶
func (*Domain) DeleteSession ¶
func (*Domain) ReadPasswordResetCode ¶
func (domain *Domain) ReadPasswordResetCode(ctx context.Context, userId, code string) (*passwordResetCode, error)
ReadToken returns the user id
func (*Domain) ReadSession ¶
func (*Domain) SaltAndPassword ¶
func (*Domain) SavePasswordResetCode ¶
func (*Domain) SendPasswordResetEmail ¶
Click to show internal directories.
Click to hide internal directories.