Documentation ¶
Index ¶
- type Store
- func (p *Store) Get(ctx context.Context, cslURL string) (*credentialstatus.CSLIndexWrapper, error)
- func (p *Store) GetLatestListID(ctx context.Context) (credentialstatus.ListID, error)
- func (p *Store) UpdateLatestListID(ctx context.Context, id credentialstatus.ListID) error
- func (p *Store) Upsert(ctx context.Context, cslURL string, ...) 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.CSLIndexWrapper, error)
Get returns credentialstatus.CSLIndexWrapper based on credentialstatus.CSL URL.
func (*Store) GetLatestListID ¶
func (*Store) UpdateLatestListID ¶
func (*Store) Upsert ¶
func (p *Store) Upsert(ctx context.Context, cslURL string, cslWrapper *credentialstatus.CSLIndexWrapper) error
Upsert does upsert operation of cslWrapper against underlying MongoDB.
Click to show internal directories.
Click to hide internal directories.