Documentation ¶
Index ¶
- type UserDbCommunication
- type UserDbCommunicationPostgres
- func (dbcomm UserDbCommunicationPostgres) RetrieveUserByUserId(userId string) (user user_models.User, errs []error)
- func (dbcomm UserDbCommunicationPostgres) RetrieveUserByWebId(webUserId string) (user user_models.User, errs []error)
- func (dbcomm UserDbCommunicationPostgres) RetrieveUserCookieStringByUserId(userId string) (cookie string, errs []error)
- func (dbcomm UserDbCommunicationPostgres) SetCookieForUser(userId string, cookie *http.Cookie) (errs []error)
- func (dbcomm UserDbCommunicationPostgres) SetWebUserForEaUser(userId string, webUserId string) (errs []error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserDbCommunication ¶
type UserDbCommunication interface { SetCookieForUser(userId string, cookie *http.Cookie) (errs []error) RetrieveUserByUserId(userId string) (user user_models.User, errs []error) RetrieveUserByWebId(webUserId string) (user user_models.User, errs []error) RetrieveUserCookieStringByUserId(userId string) (cookie string, errs []error) SetWebUserForEaUser(userId string, webUserId string) (errs []error) }
type UserDbCommunicationPostgres ¶
type UserDbCommunicationPostgres struct {
// contains filtered or unexported fields
}
func CreateUserDbCommunicationPostgres ¶
func CreateUserDbCommunicationPostgres(db *gorm.DB) UserDbCommunicationPostgres
func (UserDbCommunicationPostgres) RetrieveUserByUserId ¶
func (dbcomm UserDbCommunicationPostgres) RetrieveUserByUserId(userId string) (user user_models.User, errs []error)
func (UserDbCommunicationPostgres) RetrieveUserByWebId ¶
func (dbcomm UserDbCommunicationPostgres) RetrieveUserByWebId(webUserId string) (user user_models.User, errs []error)
func (UserDbCommunicationPostgres) RetrieveUserCookieStringByUserId ¶
func (dbcomm UserDbCommunicationPostgres) RetrieveUserCookieStringByUserId(userId string) (cookie string, errs []error)
func (UserDbCommunicationPostgres) SetCookieForUser ¶
func (dbcomm UserDbCommunicationPostgres) SetCookieForUser(userId string, cookie *http.Cookie) (errs []error)
TODO: use cookie string instead
func (UserDbCommunicationPostgres) SetWebUserForEaUser ¶
func (dbcomm UserDbCommunicationPostgres) SetWebUserForEaUser(userId string, webUserId string) (errs []error)
Click to show internal directories.
Click to hide internal directories.