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