repository

package
v0.0.0-...-5ce25cb Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

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 (*CredentialRepository) GetUserVCs

func (cs *CredentialRepository) GetUserVCs(
	ctx context.Context,
	issuer string,
	user string,
	schemaType string,
) ([]verifiable.W3CCredential, error)

func (*CredentialRepository) GetVCByID

func (cs *CredentialRepository) GetVCByID(
	ctx context.Context,
	issuer string,
	credentialID string,
) (verifiable.W3CCredential, error)

Jump to

Keyboard shortcuts

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