Documentation ¶
Overview ¶
Package memstorage contains a credential storage implementation using in-memory storage only.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
A Provider allows for credential storage and retrieval using in-memory storage only.
func (*Provider) Add ¶
func (p *Provider) Add(vc *verifiable.Credential) error
Add stores the given credential.
func (*Provider) Get ¶
func (p *Provider) Get(id string) (*verifiable.Credential, error)
Get returns a credential with the given id. An error is returned if no credential exists with the given id.
func (*Provider) GetAll ¶
func (p *Provider) GetAll() ([]verifiable.Credential, error)
GetAll returns all stored credentials.
Click to show internal directories.
Click to hide internal directories.