Documentation ¶
Index ¶
- type Store
- func (p *Store) Get(ctx context.Context, cslURL string) (*credentialstatus.CSLVCWrapper, error)
- func (p *Store) GetCSLURL(issuerProfileURL, groupID string, listID credentialstatus.ListID) (string, error)
- func (p *Store) Upsert(ctx context.Context, cslURL string, wrapper *credentialstatus.CSLVCWrapper) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store manages profile in mongodb.
func (*Store) Get ¶
func (p *Store) Get(ctx context.Context, cslURL string) (*credentialstatus.CSLVCWrapper, error)
Get returns credentialstatus.CSLVCWrapper based on credentialstatus.CSL URL.
func (*Store) GetCSLURL ¶
func (p *Store) GetCSLURL(issuerProfileURL, groupID string, listID credentialstatus.ListID) (string, error)
GetCSLURL returns the URL of credentialstatus.CSL.
func (*Store) Upsert ¶
func (p *Store) Upsert(ctx context.Context, cslURL string, wrapper *credentialstatus.CSLVCWrapper) error
Upsert does upsert operation of cslWrapper against underlying MongoDB.
Click to show internal directories.
Click to hide internal directories.