Versions in this module Expand all Collapse all v0 v0.1.0 Apr 23, 2018 Changes in this version + const AsyncBackupMode + const DefaultLoadFactor + const DefaultLogLevel + const DefaultPartitionCount + const SyncBackupMode + var ErrKeyNotFound = errors.New("key not found") + var ErrNoSuchLock = errors.New("no such lock") + var ErrOperationTimeout = errors.New("operation timeout") + func NewMemberlistConfig(env string) (*memberlist.Config, error) + type Config struct + BackupCount int + BackupMode int + CertFile string + Client *http.Client + Hasher Hasher + KeyFile string + LoadFactor float64 + LogLevel string + LogOutput io.Writer + Logger *log.Logger + MemberlistConfig *memberlist.Config + Name string + PartitionCount uint64 + Peers []string + Server *http.Server + type DMap struct + func (dm *DMap) Delete(key string) error + func (dm *DMap) Destroy() error + func (dm *DMap) Get(key string) (interface{}, error) + func (dm *DMap) LockWithTimeout(key string, timeout time.Duration) error + func (dm *DMap) Put(key string, value interface{}) error + func (dm *DMap) PutEx(key string, value interface{}, timeout time.Duration) error + func (dm *DMap) Unlock(key string) error + type Hasher interface + Sum64 func([]byte) uint64 + type NodeMetadata struct + Birthdate int64 + type OlricDB struct + func New(c *Config) (*OlricDB, error) + func (db *OlricDB) NewDMap(name string) *DMap + func (db *OlricDB) Shutdown(ctx context.Context) error + func (db *OlricDB) Start() error