Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCredentailModelFromW3C ¶
func NewCredentailModelFromW3C(vc verifiable.W3CCredential) (credentialModel, error)
Types ¶
type CredentialRepository ¶
type CredentialRepository struct {
// contains filtered or unexported fields
}
func NewCredentialRepository ¶
func NewCredentialRepository(db *mongo.Database) (*CredentialRepository, error)
func (*CredentialRepository) Create ¶
func (cs *CredentialRepository) Create( ctx context.Context, vc verifiable.W3CCredential, ) (string, error)
func (*CredentialRepository) GetVCByID ¶
func (cs *CredentialRepository) GetVCByID( ctx context.Context, issuer string, credentialID string, ) (verifiable.W3CCredential, error)
Click to show internal directories.
Click to hide internal directories.