Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Locator ¶
type Locator interface { // Name 获取定位器组件名 Name() string // Watch 监听用户定位变化 Watch(ctx context.Context, kinds ...string) (Watcher, error) // BindGate 绑定网关 BindGate(ctx context.Context, uid int64, gid string) error // BindNode 绑定节点 BindNode(ctx context.Context, uid int64, name, nid string) error // UnbindGate 解绑网关 UnbindGate(ctx context.Context, uid int64, gid string) error // UnbindNode 解绑节点 UnbindNode(ctx context.Context, uid int64, name string, nid string) error // LocateGate 定位用户所在网关 LocateGate(ctx context.Context, uid int64) (string, error) // LocateNode 定位用户所在节点 LocateNode(ctx context.Context, uid int64, name string) (string, error) }
Click to show internal directories.
Click to hide internal directories.