Documentation ¶
Index ¶
- Variables
- func BindEventDistEntityOffline(auto iAutoEventDistEntityOffline, subscriber EventDistEntityOffline, ...) event.Hook
- func BindEventDistEntityOnline(auto iAutoEventDistEntityOnline, subscriber EventDistEntityOnline, ...) event.Hook
- type DistEntityRegistryOptions
- type EventDistEntityOffline
- type EventDistEntityOfflineHandler
- type EventDistEntityOnline
- type EventDistEntityOnlineHandler
- type IDistEntityRegistry
- type IDistEntityRegistryEventTab
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Name = self.Name Using = self.Using Install = self.Install Uninstall = self.Uninstall )
View Source
var ( EventDistEntityOnlineId = _distEntityRegistryEventTabId + 0 EventDistEntityOfflineId = _distEntityRegistryEventTabId + 1 )
View Source
var With _Option
Functions ¶
func BindEventDistEntityOffline ¶
func BindEventDistEntityOffline(auto iAutoEventDistEntityOffline, subscriber EventDistEntityOffline, priority ...int32) event.Hook
func BindEventDistEntityOnline ¶
func BindEventDistEntityOnline(auto iAutoEventDistEntityOnline, subscriber EventDistEntityOnline, priority ...int32) event.Hook
Types ¶
type DistEntityRegistryOptions ¶
type DistEntityRegistryOptions struct { EtcdClient *clientv3.Client EtcdConfig *clientv3.Config KeyPrefix string TTL time.Duration CustomUsername string CustomPassword string CustomAddresses []string CustomTLSConfig *tls.Config }
DistEntityRegistryOptions 所有选项
type EventDistEntityOffline ¶
EventDistEntityOffline 事件:分布式实体下线
type EventDistEntityOfflineHandler ¶
func HandleEventDistEntityOffline ¶
func HandleEventDistEntityOffline(fun func(entity ec.Entity)) EventDistEntityOfflineHandler
func (EventDistEntityOfflineHandler) OnDistEntityOffline ¶
func (h EventDistEntityOfflineHandler) OnDistEntityOffline(entity ec.Entity)
type EventDistEntityOnline ¶
EventDistEntityOnline 事件:分布式实体上线
type EventDistEntityOnlineHandler ¶
func HandleEventDistEntityOnline ¶
func HandleEventDistEntityOnline(fun func(entity ec.Entity)) EventDistEntityOnlineHandler
func (EventDistEntityOnlineHandler) OnDistEntityOnline ¶
func (h EventDistEntityOnlineHandler) OnDistEntityOnline(entity ec.Entity)
type IDistEntityRegistry ¶
type IDistEntityRegistry interface { IDistEntityRegistryEventTab }
IDistEntityRegistry 分布式实体注册支持,会将全局可以访问的实体注册为分布式实体
Click to show internal directories.
Click to hide internal directories.