apollo

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const APOLLO = "apollo"

APOLLO 在系统中的标识

Variables

This section is empty.

Functions

This section is empty.

Types

type ApolloConfigSource

type ApolloConfigSource struct {
	// contains filtered or unexported fields
}

ApolloConfigSource 数据配置源定义

func New

func New(serviceName string, endpoint string) *ApolloConfigSource

New 创建Apollo配置数据源

func (*ApolloConfigSource) Init

func (a *ApolloConfigSource) Init(ctx context.Context) error

Init 初始化Apollo数据配置源

func (*ApolloConfigSource) Listen

func (a *ApolloConfigSource) Listen(filename string, value interface{}, timeout time.Duration) error

Listen 读取指定配置文件的配置数据事件

func (*ApolloConfigSource) Read

func (a *ApolloConfigSource) Read(filename string, value interface{}, timeout time.Duration) error

Read 读取指定配置文件的配置数据

Jump to

Keyboard shortcuts

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