Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ForeignDevIntegrationCreds ¶
type ForeignDevIntegrationCreds struct { models.Base Name string `json:"name"` IntegrationID uuid.UUID `json:"integration_id"` Specification string `pg:"type:jsonb" json:"specification"` }
ForeignDevIntegrationCreds holds the necessary information for the app to make successful requests to third-party integrations.
type ForeignUserAccountCreds ¶
type ForeignUserAccountCreds struct { models.Base UserID uuid.UUID `json:"user_id"` IntegrationID uuid.UUID `json:"integration_id"` EncAccessToken string `json:"enc_access_token"` EncRefreshToken string `json:"enc_refresh_token"` }
ForeignUserAccountCreds holds the necessary information to access user's third-party resources.
type UserAccountCreds ¶
type UserAccountCreds struct { models.Base Email string `pg:",notnull,unique" json:"email"` PasswordHash string `json:"password_hash"` }
UserAccountCreds holds the necessary information to access a user's account.
func (*UserAccountCreds) Create ¶
func (creds *UserAccountCreds) Create(db *database.DB) error
Create creates a user account credentials.
func (*UserAccountCreds) GetByEmail ¶
func (creds *UserAccountCreds) GetByEmail(db *database.DB) error
GetByEmail gets user account credentials by email.
Click to show internal directories.
Click to hide internal directories.