Documentation
¶
Index ¶
- Variables
- type KNotifyMessage
- type Rediaron
- func (r *Rediaron) BindStatus(ctx context.Context, entityKey, statusKey, statusValue string, ttl int64) error
- func (r *Rediaron) Create(ctx context.Context, data map[string]string) error
- func (r *Rediaron) CreateAndDecr(ctx context.Context, data map[string]string, decrKey string) (err error)
- func (r *Rediaron) CreateLock(key string, ttl time.Duration) (lock.DistributedLock, error)
- func (r *Rediaron) Delete(ctx context.Context, keys []string) error
- func (r *Rediaron) GetMulti(ctx context.Context, keys []string) (map[string]string, error)
- func (r *Rediaron) GetOne(ctx context.Context, key string) (string, error)
- func (r *Rediaron) GetPrefix(ctx context.Context, prefix string, limit int64) (map[string]string, error)
- func (r *Rediaron) KNotify(ctx context.Context, pattern string) chan *KNotifyMessage
- func (r *Rediaron) ListPrefix(ctx context.Context, prefix string) ([]string, error)
- func (r *Rediaron) NotFound(err error) bool
- func (r *Rediaron) Put(ctx context.Context, data map[string]string) error
- func (r *Rediaron) StartEphemeral(ctx context.Context, path string, heartbeat time.Duration) (<-chan struct{}, func(), error)
- func (r *Rediaron) Update(ctx context.Context, data map[string]string) error
- func (r *Rediaron) Watch(ctx context.Context, prefix string) iter.Seq[common.Event]
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAlreadyExists indicates SETNX found the key already set. ErrAlreadyExists = errors.New("key already exists") // ErrKeyNotExists indicates an update targeted a missing key, as the etcd store reports it. ErrKeyNotExists = errors.New("key not exists") )
Functions ¶
This section is empty.
Types ¶
type KNotifyMessage ¶
KNotifyMessage is received when using KNotify
type Rediaron ¶
Rediaron is a store implemented by redis
func (*Rediaron) BindStatus ¶
func (*Rediaron) CreateAndDecr ¶ added in v0.1.1
func (*Rediaron) CreateLock ¶
func (*Rediaron) KNotify ¶
func (r *Rediaron) KNotify(ctx context.Context, pattern string) chan *KNotifyMessage
KNotify streams key change notifications, the redis counterpart of an etcd watch.
func (*Rediaron) ListPrefix ¶ added in v0.1.1
func (*Rediaron) StartEphemeral ¶
Click to show internal directories.
Click to hide internal directories.