Documentation ¶
Index ¶
- type ErrUserDeleted
- type ErrUserIdAlreadyExists
- type ErrUserNotFound
- type Storage
- func (s *Storage) ChangePassword(ctx context.Context, userId, newPassword string) (err error)
- func (s *Storage) Close(ctx context.Context) (err error)
- func (s *Storage) CreateUser(ctx context.Context, id, name, password string) (err error)
- func (s *Storage) DeleteUser(ctx context.Context, userId string) (err error)
- func (s *Storage) GenerateUserDeletionCode(ctx context.Context, userId string) (code string, err error)
- func (s *Storage) Open() (err error)
- func (s *Storage) UpdateCommonProfileInfoV1(ctx context.Context, userId string, info *models.UserProfileCommonV1) (oldPic string, err error)
- func (s *Storage) UserInfoV1(ctx context.Context, id string) (info *models.UserInfoV1, err error)
- func (s *Storage) ValidateCredentials(ctx context.Context, userId, password string) (valid bool, err error)
- func (s *Storage) ValidateUserDeletionCode(ctx context.Context, userId string, code string) (valid bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrUserDeleted ¶
type ErrUserDeleted struct{}
func (*ErrUserDeleted) Error ¶
func (e *ErrUserDeleted) Error() string
func (*ErrUserDeleted) ImplementsUserDeletedError ¶
func (e *ErrUserDeleted) ImplementsUserDeletedError()
type ErrUserIdAlreadyExists ¶
type ErrUserIdAlreadyExists struct{}
func (*ErrUserIdAlreadyExists) Error ¶
func (e *ErrUserIdAlreadyExists) Error() string
func (*ErrUserIdAlreadyExists) ImplementsUserIdAlreadyExistsError ¶
func (e *ErrUserIdAlreadyExists) ImplementsUserIdAlreadyExistsError()
type ErrUserNotFound ¶
type ErrUserNotFound struct{}
func (*ErrUserNotFound) Error ¶
func (e *ErrUserNotFound) Error() string
func (*ErrUserNotFound) ImplementsUserNotFoundError ¶
func (e *ErrUserNotFound) ImplementsUserNotFoundError()
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) ChangePassword ¶
func (*Storage) CreateUser ¶
func (*Storage) DeleteUser ¶
func (*Storage) GenerateUserDeletionCode ¶
func (*Storage) UpdateCommonProfileInfoV1 ¶
func (*Storage) UserInfoV1 ¶
func (*Storage) ValidateCredentials ¶
Click to show internal directories.
Click to hide internal directories.