Documentation ¶
Index ¶
- type FlashCardDB
- type MongoDB
- func (m *MongoDB) AddUsersToDB(users []domain.User) bool
- func (m *MongoDB) DeleteUserFromDB(user domain.User) bool
- func (m *MongoDB) GetDB() RealDB
- func (m *MongoDB) GetDBUsers() ([]domain.User, bool)
- func (m *MongoDB) GetUserFromDB(userName string) (domain.User, bool)
- func (m *MongoDB) InitDB(dataSourceURI string, DBName string)
- func (m *MongoDB) SetDB(DB RealDB)
- func (m *MongoDB) SetRoleOfUsersInDB(users []domain.User) bool
- func (m *MongoDB) UpdateUserInDB(user domain.User) (domain.User, bool)
- type MySQLDB
- func (m *MySQLDB) AddUsersToDB(users []domain.User) bool
- func (m *MySQLDB) DeleteUserFromDB(user domain.User) bool
- func (m *MySQLDB) DeleteUserRolesFromDB(user domain.User) bool
- func (m *MySQLDB) GetDB() RealDB
- func (m *MySQLDB) GetDBUsers() ([]domain.User, bool)
- func (m *MySQLDB) GetUserFromDB(userName string) (domain.User, bool)
- func (m *MySQLDB) InitDB(dataSourceURI string, DBName string)
- func (m *MySQLDB) SetDB(DB RealDB)
- func (m *MySQLDB) SetRoleFromDB(user *domain.User) bool
- func (m *MySQLDB) SetRoleOfUsersInDB(users []domain.User) bool
- func (m *MySQLDB) SetRolesOfDBUsers(users map[string]*domain.User)
- func (m *MySQLDB) UpdateUserInDB(user domain.User) (domain.User, bool)
- type RealDB
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FlashCardDB ¶
type FlashCardDB interface { InitDB(dataSourceURI string, DBName string) GetDBUsers() ([]domain.User, bool) GetUserFromDB(userName string) (domain.User, bool) AddUsersToDB([]domain.User) bool UpdateUserInDB(user domain.User) (domain.User, bool) DeleteUserFromDB(user domain.User) bool GetDB() RealDB SetDB(DB RealDB) SetRoleOfUsersInDB(users []domain.User) bool }
type MySQLDB ¶
func (*MySQLDB) DeleteUserRolesFromDB ¶
func (*MySQLDB) GetUserFromDB ¶
func (*MySQLDB) SetRolesOfDBUsers ¶
Click to show internal directories.
Click to hide internal directories.