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 ¶
type VerificationMethod ¶
type VerificationMethod struct {
ID string `gorm:"primaryKey"`
PublicKeyJwk *types.Jwk `gorm:"embedded;embeddedPrefix:public_key_jwk_"`
ResolverMetadataID string
}
func (*VerificationMethod) ToCoreType ¶
func (vm *VerificationMethod) ToCoreType() *types.VerificationMethod
Click to show internal directories.
Click to hide internal directories.