Help us shape the future of Go! Take the 2026 Go Developer Survey

postgres

package
v0.0.26 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository(dbContext db.Context) vccore.Repository

Types

type CredentialSchema

type CredentialSchema struct {
	ID                     string `gorm:"primaryKey"`
	VerifiableCredentialID string `gorm:"primaryKey"`
	Type                   string
}

func (*CredentialSchema) ToCoreType

func (c *CredentialSchema) ToCoreType() *types.CredentialSchema

type CredentialStatus added in v0.0.6

type CredentialStatus struct {
	ID                     string `gorm:"primaryKey"`
	VerifiableCredentialID string `gorm:"primaryKey"`
	Type                   string
	CreatedAt              time.Time
	Purpose                types.CredentialStatusPurpose
}

func (*CredentialStatus) ToCoreType added in v0.0.6

func (c *CredentialStatus) ToCoreType() *types.CredentialStatus

type VerifiableCredential

type VerifiableCredential struct {
	ID                 string `gorm:"primarykey"`
	CreatedAt          time.Time
	Context            pq.StringArray `gorm:"type:text[]"`
	Type               pq.StringArray `gorm:"type:text[]"`
	Issuer             string
	CredentialSubject  json.RawMessage
	IssuanceDate       string
	ExpirationDate     string
	CredentialSchema   []*CredentialSchema `gorm:"foreignKey:VerifiableCredentialID"`
	Status             []*CredentialStatus `gorm:"foreignKey:VerifiableCredentialID"`
	Proof              *types.Proof        `gorm:"embedded;embeddedPrefix:proof_"`
	ResolverMetadataID string
}

func (*VerifiableCredential) ToCoreType

Jump to

Keyboard shortcuts

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