Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultNamespace = "application"
)
Variables ¶
This section is empty.
Functions ¶
func SetDefault ¶
func SetDefault(c *agollo.Client)
func SetLoader ¶
func SetLoader(a *AgolloLoader)
Types ¶
type AgolloLoader ¶
type AgolloLoader struct { *agollo.Client // contains filtered or unexported fields }
func NewAgolloLoader ¶
func NewAgolloLoader(c *agollo.Client) *AgolloLoader
func (*AgolloLoader) ReadWithRefresh ¶
func (a *AgolloLoader) ReadWithRefresh(v interface{})
func (*AgolloLoader) Refresh ¶
func (a *AgolloLoader) Refresh(changeEvent *storage.ChangeEvent)
type ChangeListener ¶
type ChangeListener struct { }
func (*ChangeListener) OnChange ¶
func (c *ChangeListener) OnChange(changeEvent *storage.ChangeEvent)
func (*ChangeListener) OnNewestChange ¶
func (c *ChangeListener) OnNewestChange(event *storage.FullChangeEvent)
type ValueRegister ¶
type ValueRegister struct { FiledCache map[string]map[string]reflect.Value // contains filtered or unexported fields }
func NewValueRegister ¶
func NewValueRegister() *ValueRegister
func (*ValueRegister) Reflect ¶
func (r *ValueRegister) Reflect(target interface{})
Click to show internal directories.
Click to hide internal directories.