Documentation ¶
Index ¶
- type DB
- func (db *DB) Close() error
- func (db *DB) Find(pattern string, a ...interface{}) (res []gjson.Result, err error)
- func (db *DB) FindOne(pattern string, a ...interface{}) (res gjson.Result, err error)
- func (db *DB) Get(key string, a ...interface{}) (res gjson.Result, err error)
- func (db *DB) Set(key, value string) error
- func (db *DB) SetMany(vals map[string]interface{}) error
- func (db *DB) SetRaw(val string) error
- type Entry
- type FolderSource
- type MemSource
- type Source
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
DB is a key value db for the ACI MIT keys are class:dn values are the full JSON record
type FolderSource ¶
type FolderSource struct {
Path string
}
FolderSource is a temp folder source.
Used to read collection results from a temp folder, e.g. a zip archive.
func NewFolderSource ¶
func NewFolderSource(path string) *FolderSource
NewFolderSource creates a new source for folder entries
func (*FolderSource) Entries ¶
func (src *FolderSource) Entries() (entries []*Entry, err error)
Entries fulfills the Source interface.
type MemSource ¶
type MemSource struct {
// contains filtered or unexported fields
}
MemSource is an in-memory source.
Used to pass collection results directly without touching disk.
func NewMemSource ¶
func NewMemSource() *MemSource
NewMemSource creates a new memory source for database entries.
Click to show internal directories.
Click to hide internal directories.