Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigCenter = &Apollo{}
Functions ¶
This section is empty.
Types ¶
type Apollo ¶
type CustomListener ¶ added in v0.13.10
type CustomListener struct {
// contains filtered or unexported fields
}
1. 定义你的监听器结构体
func (*CustomListener) OnChange ¶ added in v0.13.10
func (l *CustomListener) OnChange(event *storage.ChangeEvent)
OnChange is called when any Apollo config key changes; it serializes the changes as properties and passes them to the registered onChange handler.
func (*CustomListener) OnNewestChange ¶ added in v0.13.10
func (l *CustomListener) OnNewestChange(event *storage.FullChangeEvent)
OnNewestChange is called with the full diff; currently a no-op.
Click to show internal directories.
Click to hide internal directories.