Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DB ¶
type DB interface { Set(k Key, v string) error Get(k Key) (string, error) Del(keys []string) error Scan(ScannerOpt ScannerOptions) error Size() int64 GC() error Close() }
DB - database interface
type Key ¶
type Key struct { // TimeSeries Identifier ID ulid.ULID // 16 byte array // Stream name Stream StreamID // Version offset Version []byte }
Key - structure to hold both stream and version
func NewEventKey ¶
NewEventKey - create a new Event with defined Ulid
type ScannerOptions ¶
type ScannerOptions struct { // from where to start Offset []byte // whether to include the value of the offset in the result or not IncludeOffset bool // the prefix that must be exists in each key in the iteration Prefix []byte // fetch the values (true) or this is a key only iteration (false) FetchValues bool // fetch values from the time series index Index bool // the handler that handles the incoming data Handler Handler }
ScannerOptions - represents the options for a scanner
Click to show internal directories.
Click to hide internal directories.