Documentation ¶
Index ¶
- type 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) (locator.Watcher, error)
- type Option
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locator ¶
type Locator struct {
// contains filtered or unexported fields
}
func NewLocator ¶
Click to show internal directories.
Click to hide internal directories.