apollo

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfigBytes added in v1.0.13

func NewConfigBytes(opts ...OptionFunc) (context.Context, []byte, error)

NewConfigBytes 获取配置

func RangeKey

func RangeKey(namespace string, client agollo.Client) map[string]interface{}

Types

type OptionFunc added in v1.0.12

type OptionFunc func(*ap)

func WithApp added in v1.0.12

func WithApp(app string) OptionFunc

func WithCluster added in v1.0.12

func WithCluster(cluster string) OptionFunc

func WithIp added in v1.0.12

func WithIp(ip string) OptionFunc

func WithNamespaceName added in v1.0.12

func WithNamespaceName(namespaceName []string) OptionFunc

func WithPath added in v1.0.12

func WithPath(path string) OptionFunc

func WithSecret added in v1.0.12

func WithSecret(secret string) OptionFunc

type Parser

type Parser struct {
}

Parser properties转换器

func (*Parser) Parse

func (d *Parser) Parse(configContent interface{}) (map[string]interface{}, error)

Parse 内存内容=>yml文件转换器

Jump to

Keyboard shortcuts

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