user_db

package
v0.0.0-...-374d589 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL