Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( BucketState = []byte("state") BucketMeta = []byte("meta") BucketRefs = []byte("refs") BucketMembers = []byte("members") )
Functions ¶
func WithLogger ¶
Types ¶
type LdbWALStorage ¶
type LdbWALStorage = *ldbWALStorage
func OpenWAL ¶
func OpenWAL(path string, opts *WALOptions) (LdbWALStorage, error)
type Options ¶
type Options struct { Listener refs.Listener Logger logging.Logger *WALOptions NewLocalID func() (refs.PeerID, error) }
func NewOptions ¶
func NewOptions() *Options
type RestoreConfig ¶
type RestoreConfig struct { DataDir string OutputDataDir string LocalID refs.PeerID Members []refs.Member }
func (RestoreConfig) Validate ¶
func (c RestoreConfig) Validate() error
type Restorer ¶
type Restorer interface { Restore(cfg RestoreConfig) error Status(dbPath string) (*Status, error) }
func NewRestorer ¶
type Status ¶
type Status = ragit.InitialState
type StorageOptions ¶
type StorageOptions func(*storage)
func WithSubscriberCap ¶
func WithSubscriberCap(cap int) StorageOptions
func WithWaitApplyCap ¶
func WithWaitApplyCap(cap int) StorageOptions
type SubManager ¶
type SubManager interface {
// contains filtered or unexported methods
}
type SubMgrOption ¶
type SubMgrOption func(*subMgr)
func WithSubMgrCap ¶
func WithSubMgrCap(cap int) SubMgrOption
func WithSubMgrLogger ¶
func WithSubMgrLogger(logger logging.Logger) SubMgrOption
type WALOptions ¶
func NewWALOptions ¶
func NewWALOptions() *WALOptions
Source Files
¶
Click to show internal directories.
Click to hide internal directories.