Versions in this module Expand all Collapse all v1 v1.0.0 Feb 28, 2023 Changes in this version + type Locator struct + func NewLocator(opts ...Option) *Locator + func (l *Locator) Get(ctx context.Context, uid int64, insKind cluster.Kind) (string, error) + func (l *Locator) Rem(ctx context.Context, uid int64, insKind cluster.Kind, insID string) error + func (l *Locator) Set(ctx context.Context, uid int64, insKind cluster.Kind, insID string) error + func (l *Locator) Watch(ctx context.Context, insKinds ...cluster.Kind) (locate.Watcher, error) + type Option func(o *options) + func WithAddrs(addrs ...string) Option + func WithClient(client redis.UniversalClient) Option + func WithContext(ctx context.Context) Option + func WithDB(db int) Option + func WithMaxRetries(maxRetries int) Option + func WithPassword(password string) Option + func WithPrefix(prefix string) Option + func WithUsername(username string) Option