mongodb

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PublicDIDC           = "PublicDID"
	DIDC                 = "DID"
	AgentC               = "Agent"
	AgentConnectionC     = "AgentConnection"
	SchemaC              = "Schema"
	CredentialC          = "IssuedCredential"
	PresentationC        = "Presentation"
	PresentationRequestC = "PresentationRequest"
	WebhookC             = "Webhook"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	URL      string `mapstructure:"url"`
	Database string `mapstructure:"database"`
}

type Provider

type Provider struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

Provider represents a Mongo DB implementation of the storage.Provider interface

func NewProvider

func NewProvider(config *Config) (*Provider, error)

NewProvider instantiates Provider

func (*Provider) Close

func (r *Provider) Close() error

Close closes the provider.

func (*Provider) Open

func (r *Provider) Open() (datastore.Store, error)

Open opens and returns the collection for given name space.

Jump to

Keyboard shortcuts

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