Documentation ¶
Index ¶
- Constants
- type Bucket
- func (b *Bucket) Cursor(opts ...kv.CursorHint) (kv.Cursor, error)
- func (b *Bucket) Delete(key []byte) error
- func (b *Bucket) ForwardCursor(seek []byte, opts ...kv.CursorOption) (kv.ForwardCursor, error)
- func (b *Bucket) Get(key []byte) ([]byte, error)
- func (b *Bucket) Put(key []byte, value []byte) error
- type Client
- type Cursor
- type KVStore
- func (s *KVStore) Backup(ctx context.Context, w io.Writer) error
- func (s *KVStore) Close() error
- func (s *KVStore) Flush(ctx context.Context)
- func (s *KVStore) Open(ctx context.Context) error
- func (s *KVStore) Update(ctx context.Context, fn func(tx kv.Tx) error) error
- func (s *KVStore) View(ctx context.Context, fn func(tx kv.Tx) error) error
- func (s *KVStore) WithDB(db *bolt.DB)
- type Tx
Constants ¶
const DefaultFilename = "influxd.bolt"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
// contains filtered or unexported fields
}
Bucket implements kv.Bucket.
func (*Bucket) Cursor ¶
Cursor retrieves a cursor for iterating through the entries in the key value store.
func (*Bucket) ForwardCursor ¶
func (b *Bucket) ForwardCursor(seek []byte, opts ...kv.CursorOption) (kv.ForwardCursor, error)
ForwardCursor retrieves a cursor for iterating through the entries in the key value store in a given direction (ascending / descending).
type Client ¶
type Client struct { Path string IDGenerator platform.IDGenerator TokenGenerator platform.TokenGenerator platform.TimeGenerator // contains filtered or unexported fields }
Client is a client for the boltDB data store.
func (*Client) Collect ¶
func (c *Client) Collect(ch chan<- prometheus.Metric)
Collect returns the current state of all metrics of the collector.
func (*Client) Describe ¶
func (c *Client) Describe(ch chan<- *prometheus.Desc)
Describe returns all descriptions of the collector.
type Cursor ¶
type Cursor struct {
// contains filtered or unexported fields
}
Cursor is a struct for iterating through the entries in the key value store.
type KVStore ¶
type KVStore struct {
// contains filtered or unexported fields
}
KVStore is a kv.Store backed by boltdb.
func NewKVStore ¶
NewKVStore returns an instance of KVStore with the file at the provided path.
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
Tx is a light wrapper around a boltdb transaction. It implements kv.Tx.
func (*Tx) WithContext ¶
WithContext sets the context for the transaction.