Documentation ¶
Index ¶
- type Repository
- func (_m *Repository) CreateRole(ctx context.Context, role models.Role) error
- func (_m *Repository) GetRole(ctx context.Context, roleName string) (models.Role, error)
- func (_m *Repository) GetRoles(ctx context.Context) ([]models.Role, error)
- func (_m *Repository) GetUserRole(ctx context.Context, userID string) ([]models.Role, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
Repository is an autogenerated mock type for the Repository type
func (*Repository) CreateRole ¶
CreateRole provides a mock function with given fields: ctx, role
func (*Repository) GetUserRole ¶
GetUserRole provides a mock function with given fields: ctx, userID
Click to show internal directories.
Click to hide internal directories.