setup

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var WatchConfigFields = make(map[string]*Field)

Functions

func GetReflectFields

func GetReflectFields(section string, v interface{}) (map[string]*Field, error)

GetReflectFields gets reflect fields from v.

func SaveWatchConfigField

func SaveWatchConfigField(v interface{}, fields map[string]*Field, client agollo.Client, namespace string) error

SaveWatchConfigField save uses reflection fields to get value from apollo, and convert it into the given native structure v.

Types

type Field

type Field struct {
	Name          string
	ApolloKeyName string
	Value         reflect.Value
	Type          reflect.Type
}

Field ...

func (*Field) SetNewValue

func (f *Field) SetNewValue(newValue string) error

SetNewValue ...

Jump to

Keyboard shortcuts

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