apollo

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const WINDOWS = "windows"

Variables

View Source
var PathSeparator string

Functions

This section is empty.

Types

type ApolloClient

type ApolloClient struct {
	ClusterName string
	Server      string
	AppID       string
	ReleaseKey  string
	IP          string
	// contains filtered or unexported fields
}

func NewApolloClient

func NewApolloClient(address string, clusterName string, appId string) *ApolloClient

func (*ApolloClient) AddConfig

func (p *ApolloClient) AddConfig(configFiles []ConfigFile) (err error)

增加监听配置文件修改

func (*ApolloClient) GetConfig

func (p *ApolloClient) GetConfig(nameSpace string) (content string, err error)

func (*ApolloClient) Start

func (p *ApolloClient) Start() (err error)

func (*ApolloClient) Stop

func (p *ApolloClient) Stop()

type ConfigFile

type ConfigFile struct {
	NameSpace string //apollo 对应的namespaces(文件名)
	Path      string //配置路径
	// contains filtered or unexported fields
}

type Notification

type Notification struct {
	NamespaceName  string `json:"namespaceName"`
	NotificationID int    `json:"notificationId"`
}

Jump to

Keyboard shortcuts

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