Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowedRoles = []Role{ Manager, AIResearcher, AIEngineer, DataEngineer, DataScientist, AnalyticsEngineer, Hobbyist, }
Functions ¶
func ListAllowedRoleName ¶
func ListAllowedRoleName() []string
ListAllowedRoleName lists names of all allowed roles
func ValidateRole ¶
Types ¶
type Role ¶
type Role string
Role defines the user role
type Service ¶
type Service interface { ListRole() []string ListUser(pageSize int, pageToken string) ([]datamodel.User, string, int, error) CreateUser(user *datamodel.User) (*datamodel.User, error) GetUser(uid uuid.UUID) (*datamodel.User, error) GetUserByID(id string) (*datamodel.User, error) UpdateUser(uid uuid.UUID, user *datamodel.User) (*datamodel.User, error) DeleteUser(uid uuid.UUID) error DeleteUserByID(id string) error }
Service interface
func NewService ¶
func NewService(r repository.Repository) Service
NewService initiates a service instance
Click to show internal directories.
Click to hide internal directories.