Documentation ¶ Index ¶ type Cache func NewCache() *Cache func (c *Cache) Deregister(ch chan<- events.Event) func (c *Cache) Register(ch chan<- events.Event) func (c *Cache) State() events.Event func (c *Cache) Stop() func (c *Cache) Update(event events.Event) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Cache ¶ type Cache struct { // contains filtered or unexported fields } 缓存服务实例 func NewCache ¶ func NewCache() *Cache func (*Cache) Deregister ¶ func (c *Cache) Deregister(ch chan<- events.Event) 注销 func (*Cache) Register ¶ func (c *Cache) Register(ch chan<- events.Event) 注册实例 func (*Cache) State ¶ func (c *Cache) State() events.Event 返回当前服务实例状态 func (*Cache) Stop ¶ func (c *Cache) Stop() 预留 func (*Cache) Update ¶ func (c *Cache) Update(event events.Event) 服务实例事件,并发布通知 Source Files ¶ View all Source files cache.goregistry.go Click to show internal directories. Click to hide internal directories.