postgres

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIdRepository

func NewIdRepository(dbContext db.Context) idcore.IdRepository

Types

type ResolverMetadata

type ResolverMetadata struct {
	ID                 string                     `gorm:"primaryKey"`
	VerificationMethod []*VerificationMethod      `gorm:"foreignKey:ResolverMetadataID"`
	Service            []*Service                 `gorm:"foreignKey:ResolverMetadataID"`
	VC                 []*vc.VerifiableCredential `gorm:"foreignKey:ResolverMetadataID"`
	AssertionMethod    pq.StringArray             `gorm:"type:text[]"`
	Controller         string
}

func (*ResolverMetadata) ToCoreType

func (md *ResolverMetadata) ToCoreType() *types.ResolverMetadata

type Service

type Service struct {
	ID                 string         `gorm:"primaryKey"`
	ServiceEndpoint    pq.StringArray `gorm:"type:text[]"`
	ResolverMetadataID string
}

func (*Service) ToCoreType

func (s *Service) ToCoreType() *types.Service

type VerificationMethod

type VerificationMethod struct {
	ID                 string   `gorm:"primaryKey"`
	PublicKeyJwk       *jwk.Jwk `gorm:"embedded;embeddedPrefix:public_key_jwk_"`
	ResolverMetadataID string
}

func (*VerificationMethod) ToCoreType

func (vm *VerificationMethod) ToCoreType() *types.VerificationMethod

Jump to

Keyboard shortcuts

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