Documentation ¶
Overview ¶
bufdb is used to persist buffer.Buffer's to a bolt.DB database.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BufferPoolStore ¶
type BufferPoolStore struct {
// contains filtered or unexported fields
}
func NewBufferPoolStore ¶
func NewBufferPoolStore(db *bolt.DB, bucket []byte) *BufferPoolStore
func (*BufferPoolStore) DeleteAll ¶
func (s *BufferPoolStore) DeleteAll() error
type BufferStore ¶
type BufferStore struct {
// contains filtered or unexported fields
}
BufferStore manages buffer.Buffer persistance.
func NewBufferStore ¶
func NewBufferStore(db *bolt.DB, bucket []byte) *BufferStore
NewBufferStore creates a new BufferStore, using the underlying bolt.DB "bucket" to persist buffers.
func (*BufferStore) DeleteAll ¶
func (s *BufferStore) DeleteAll() error
DeleteAll will call Reset() on every buffer managed by this store, and then delete the buffer from the store.
Click to show internal directories.
Click to hide internal directories.