Documentation ¶
Index ¶
Constants ¶
View Source
const MongoClaimsCollection = "cnab_claims"
MongoClaimsCollection is the name of the claims collection.
Variables ¶
View Source
var ErrRecordDoesNotExist = errors.New("File does not exist")
ErrRecordDoesNotExist represents when file path is not found on file system
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store interface { List() ([]string, error) Store(name string, data []byte) error Read(name string) ([]byte, error) Delete(name string) error }
Store is a simplified interface to a key-blob store supporting CRUD operations.
func NewFileSystemStore ¶
NewFileSystemStore creates a Store backed by a file system directory. Each key is represented by a file in that directory.
func NewMongoDBStore ¶
NewMongoDBStore creates a new storage engine that uses MongoDB
The URL provided must point to a MongoDB server and database.
Click to show internal directories.
Click to hide internal directories.