Documentation
¶
Index ¶
- Constants
- Variables
- func CreateBackupDBEntry(db *gorm.DB, bidingId string, userId string, name string, creds []byte) error
- func CreateOrUpdateUserConfigDbEntry(db *gorm.DB, userId string, attributes map[string]interface{}) error
- func CreatePresentationRequestDBEntry(db *gorm.DB, userId string, requestId string, ttl int, proofRequestId string) error
- func CreateRecordDBEntry(db *gorm.DB, userId string, event common.RecordEventType, msg string) error
- func CreateUserConnectioniDbEntry(db *gorm.DB, id string, remoteDid string) error
- func CreateUserSecretDbEntry(db *gorm.DB, id string, secretId string)
- func CreateUserSecretId(userId string) string
- func DeleteBackupById(db *gorm.DB, bindingId string) error
- func DeleteInvalidatedBackups(db *gorm.DB, userId string) error
- func DeletePresentationRequests(db *gorm.DB, userId string, requestIds []string) error
- func DeleteUserConnectioniDbEntry(db *gorm.DB, id string, remoteDid string) error
- func EnrichBackupDBEntry(db *gorm.DB, bidingId string, creds []byte) error
- func WithRecord(f common.EndpointHandler, ctx *gin.Context, env common.Env, ...) (any, error)
- type Backup
- type ContextKey
- type HistoryRecord
- type JSONB
- type PresentationRequest
- type UserConfig
- type UserConnection
- type UserSecret
Constants ¶
View Source
const SqlstateUniqueViolationState = "23505"
Variables ¶
Functions ¶
func CreateBackupDBEntry ¶
func CreateOrUpdateUserConfigDbEntry ¶
func CreatePresentationRequestDBEntry ¶
func CreateRecordDBEntry ¶
func CreateUserConnectioniDbEntry ¶
func CreateUserSecretDbEntry ¶
func DeletePresentationRequests ¶
func DeleteUserConnectioniDbEntry ¶
func EnrichBackupDBEntry ¶
Types ¶
type Backup ¶
type ContextKey ¶
type ContextKey string
const InvalidateContextKey ContextKey = "invalidate"
const SkipBeforeUpdateHookContextKey ContextKey = "skipHook"
type HistoryRecord ¶
type PresentationRequest ¶
type PresentationRequest struct { *gorm.Model UserId string `gorm:"user_id"` RequestId string `gorm:"request_id"` ProofRequestId string `gorm:"proof_request_id"` TTL int `gorm:"ttl"` }
type UserConfig ¶
type UserConfig struct { gorm.Model UserID string `gorm:"user_id"` Attributes JSONB `gorm:"type:json;not null;default:'{}'"` }
func (*UserConfig) CreateOrUpdateConfig ¶
func (u *UserConfig) CreateOrUpdateConfig(db *gorm.DB) error
type UserConnection ¶
type UserSecret ¶
type UserSecret struct { ID uint `gorm:"autoIncrement; not null; unique; index"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` // *gorm.Model is not embedded here to avoid colliding with UserId field UserId string `gorm:"user_id; unique; not null; primaryKey"` SecretId string `gorm:"secret_id"` }
func GetUserSecretIdDbEntry ¶
func GetUserSecretIdDbEntry(db *gorm.DB, id string) *UserSecret
Click to show internal directories.
Click to hide internal directories.