Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
func (*Iterator) Close ¶
func (it *Iterator) Close()
Close marks the iterator as closed. Next() should not be called again after the iterator has been closed.
type KDB ¶
type KDB struct {
// contains filtered or unexported fields
}
func NewKDB ¶
NewKDB creates a new connection to the kvlog database using the ctx context and default options, and returns *KDB. The caller is responsible for doing a Disconnect(ctx) on *KDB.client when completed.
func NewKDBOptions ¶
func NewKDBOptions(ctx context.Context, opts KDBOptions) (*KDB, error)
NewKDBOptions creates a new connection to the kvlog database using the ctx context and the given options, and returns *KDB. The caller is responsible for calling KDB.Disconnect when completed.
func (*KDB) Disconnect ¶
func (kdb *KDB) Disconnect()
func (*KDB) GetIterator ¶
GetIterator returns an Interator to fetch successive KVLog records, in reverse timestamp order (i.e. latest first). The caller is responsible for calling Close() on the returned iterator once finished.
type KDBOptions ¶
First-pass implementation: mongodb