Documentation ¶
Index ¶
- type Svc
- func (s *Svc) CreateUser(ctx context.Context, user storage.User) (string, error)
- func (s *Svc) DeleteUser(ctx context.Context, user storage.User) error
- func (s *Svc) DeleteUserInformation(ctx context.Context, userID, deletedBy string) error
- func (s *Svc) GetUserByEmail(ctx context.Context, email string) (*storage.User, error)
- func (s *Svc) GetUserByID(ctx context.Context, id string) (*storage.User, error)
- func (s *Svc) GetUserByUsername(ctx context.Context, username string) (*storage.User, error)
- func (s *Svc) GetUserInformationByUserID(ctx context.Context, id string) (*storage.UserInformation, error)
- func (s *Svc) ListUsers(ctx context.Context, p storage.FilterUser) ([]storage.User, error)
- func (s *Svc) UpdateUser(ctx context.Context, user storage.User) (*storage.User, error)
- func (s *Svc) UpdateUserInformationByUserID(ctx context.Context, profile storage.UserInformation) (*storage.UserInformation, error)
- type UserStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Svc ¶
type Svc struct {
// contains filtered or unexported fields
}
func (*Svc) CreateUser ¶
func (*Svc) DeleteUserInformation ¶
func (*Svc) GetUserByEmail ¶
func (*Svc) GetUserByID ¶
func (*Svc) GetUserByUsername ¶
func (*Svc) GetUserInformationByUserID ¶
func (*Svc) UpdateUser ¶
func (*Svc) UpdateUserInformationByUserID ¶
func (s *Svc) UpdateUserInformationByUserID(ctx context.Context, profile storage.UserInformation) (*storage.UserInformation, error)
type UserStore ¶
type UserStore interface { CreateUser(context.Context, storage.User) (string, error) UpdateUser(context.Context, storage.User) (*storage.User, error) DeleteUser(context.Context, storage.User) error GetUserByEmail(context.Context, string) (*storage.User, error) GetUserByID(context.Context, string) (*storage.User, error) GetUserByUsername(context.Context, string) (*storage.User, error) ListUsers(context.Context, storage.FilterUser) ([]storage.User, error) CreateUserInformation(context.Context, storage.UserInformation) (string, error) GetUserInformation(context.Context, string) (*storage.UserInformation, error) UpdateUserInformation(context.Context, storage.UserInformation) (*storage.UserInformation, error) DeleteUserInformation(context.Context, string, string) error }
Click to show internal directories.
Click to hide internal directories.