Documentation ¶
Overview ¶
Package backend defines a standard interface for etcd's backend storage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // InitialMmapSize is the initial size of the mmapped region. Setting this larger than // the potential max db size can prevent writer from blocking reader. // This only works for linux. InitialMmapSize = 10 * 1024 * 1024 * 1024 )
Functions ¶
func NewDefaultTmpBackend ¶
func NewDefaultTmpBackend() (*backend, string)
Types ¶
type Backend ¶
type Backend interface { BatchTx() BatchTx Snapshot() Snapshot Hash() (uint32, error) // Size returns the current size of the backend. Size() int64 ForceCommit() Close() error }
func NewDefaultBackend ¶
Click to show internal directories.
Click to hide internal directories.