data

package
v0.0.0-...-74c685c Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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 (s *Storage) ChangePassword(ctx context.Context, userId, newPassword string) (err error)

func (*Storage) Close

func (s *Storage) Close(ctx context.Context) (err error)

func (*Storage) CreateUser

func (s *Storage) CreateUser(ctx context.Context, id, name, password string) (err error)

func (*Storage) DeleteUser

func (s *Storage) DeleteUser(ctx context.Context, userId string) (err error)

func (*Storage) GenerateUserDeletionCode

func (s *Storage) GenerateUserDeletionCode(ctx context.Context, userId string) (code string, err error)

func (*Storage) Open

func (s *Storage) Open() (err error)

func (*Storage) UpdateCommonProfileInfoV1

func (s *Storage) UpdateCommonProfileInfoV1(ctx context.Context, userId string, info *models.UserProfileCommonV1) (oldPic string, err error)

func (*Storage) UserInfoV1

func (s *Storage) UserInfoV1(ctx context.Context, id string) (info *models.UserInfoV1, err error)

func (*Storage) ValidateCredentials

func (s *Storage) ValidateCredentials(ctx context.Context, userId, password string) (valid bool, err error)

func (*Storage) ValidateUserDeletionCode

func (s *Storage) ValidateUserDeletionCode(ctx context.Context, userId string, code string) (valid bool, err error)

Jump to

Keyboard shortcuts

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