apollo

package
v0.0.0-...-15b0c83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 26, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

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) Get

func (r *ValueRegister) Get(key, subKey string) *reflect.Value

func (*ValueRegister) Reflect

func (r *ValueRegister) Reflect(target interface{})

func (*ValueRegister) Register

func (r *ValueRegister) Register(ns, subKey string, v reflect.Value)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL