Documentation ¶
Index ¶
- type Store
- func (s *Store) AddUser(ctx context.Context, userParam User) (User, error)
- func (s *Store) DeleteUser(ctx context.Context, userParam User) error
- func (s *Store) EditUser(ctx context.Context, userParam User) (User, error)
- func (s *Store) EditUserImage(ctx context.Context, userParam User) error
- func (s *Store) EditUserPassword(ctx context.Context, userParam User, iter, keyLen int) error
- func (s *Store) GetUser(ctx context.Context, userParam User) (User, error)
- func (s *Store) GetUsers(ctx context.Context) ([]User, error)
- func (s *Store) GetUsersContact(ctx context.Context) ([]User, error)
- func (s *Store) GetUsersManagersTeam(ctx context.Context, teamParam team.Team) ([]User, error)
- func (s *Store) VerifyUser(ctx context.Context, userParam User, ...) (User, bool, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store stores the dependencies
func (*Store) EditUserImage ¶
func (*Store) EditUserPassword ¶
func (*Store) GetUsersContact ¶
func (*Store) GetUsersManagersTeam ¶
type User ¶
type User struct { ID int `db:"id" json:"id"` Name string `db:"name" json:"name"` Email string `db:"email" json:"email"` Phone null.String `db:"phone" json:"phone"` TeamID int `db:"team_id" json:"team_id"` TempRole string `db:"role" json:"role"` Role role.Role FileName null.String `db:"file_name" json:"file_name"` ResetPassword bool `db:"reset_password" json:"reset_password"` Password null.String `db:"password" json:"password"` Hash null.String `db:"hash" json:"hash"` Salt null.String `db:"salt" json:"salt"` Authenticated bool }
User represents relevant user fields
Click to show internal directories.
Click to hide internal directories.