Documentation ¶
Index ¶
- type CreateRoleParams
- type CreateUserParams
- type Role
- type Store
- func (s *Store) CreateRole(ctx context.Context, p CreateRoleParams) (int64, error)
- func (s *Store) CreateUser(ctx context.Context, p CreateUserParams) (int64, error)
- func (s *Store) CreateUserRole(ctx context.Context, userID, roleID int64) (int64, error)
- func (s *Store) FetchUserWithRole(ctx context.Context, userID int64) (UserWithRoles, error)
- func (s *Store) FindUserByID(ctx context.Context, id int64) (User, error)
- func (s *Store) FindUserByNameAndPassword(ctx context.Context, name, password string) (User, error)
- func (s *Store) UpdateUserStatus(ctx context.Context, id int64, status string) error
- type User
- type UserRole
- type UserWithRoles
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateRoleParams ¶
type CreateUserParams ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) CreateRole ¶
func (*Store) CreateUser ¶
func (*Store) CreateUserRole ¶
func (*Store) FetchUserWithRole ¶
func (*Store) FindUserByID ¶
func (*Store) FindUserByNameAndPassword ¶
type UserWithRoles ¶
Click to show internal directories.
Click to hide internal directories.