Documentation ¶
Overview ¶
Interface to the LevelDB database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelDB ¶
type LevelDB struct { flow.Gadget In flow.Input Out flow.Output DBAPI api.IDBReadWriteAPI `flowapi:"DBReadWriteAPI"` Settings *LevelDBSettingsAPI `flowapi:"SettingsAPI,new"` }
LevelDB is a multi-purpose gadget to get, put, and scan keys in a database. Acts on tags received on the input port. Registers itself as "LevelDB".
type LevelDBAPI ¶
type LevelDBAPI struct{} //because we need more than *db
func (*LevelDBAPI) Get ¶
func (d *LevelDBAPI) Get(key string) (interface{}, error)
func (*LevelDBAPI) Put ¶
func (d *LevelDBAPI) Put(key string, value interface{}) error
type LevelDBSettingsAPI ¶
type LevelDBSettingsAPI struct {
// contains filtered or unexported fields
}
FlowAPI SettingsAPI
func (*LevelDBSettingsAPI) Get ¶
func (d *LevelDBSettingsAPI) Get(key string) (interface{}, error)
func (*LevelDBSettingsAPI) InitAPI ¶
func (d *LevelDBSettingsAPI) InitAPI(a ...interface{})
func (*LevelDBSettingsAPI) Keys ¶
func (d *LevelDBSettingsAPI) Keys(prefix string) ([]string, error)
func (*LevelDBSettingsAPI) Put ¶
func (d *LevelDBSettingsAPI) Put(key string, value interface{}) error
Click to show internal directories.
Click to hide internal directories.