Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locator ¶
type Locator interface { // Get 获取用户定位 Get(ctx context.Context, uid int64, insKind cluster.Kind) (string, error) // Set 设置用户定位 Set(ctx context.Context, uid int64, insKind cluster.Kind, insID string) error // Rem 移除用户定位 Rem(ctx context.Context, uid int64, insKind cluster.Kind, insID string) error // Watch 监听用户定位变化 Watch(ctx context.Context, insKinds ...cluster.Kind) (Watcher, error) }
Click to show internal directories.
Click to hide internal directories.