conf_center

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigTypeLocal = "local"
	ConfigTypeNacos = "nacos"
	ConfigTypeHttp  = "http"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigCenter

type ConfigCenter interface {
	HandleConfig(func([]byte)) error
}

type ConfigCenterConfig

type ConfigCenterConfig struct {
	// 配置类型
	ConfigType string `flag:"name:conf_type;default:local;usage:配置类型"`
	// 是否监听配置文件
	Watch bool `flag:"name:watch;short:w;default:false;usage:是否监听配置文件"`
	Nacos *v2.Nacos
	Local *local.Local
	Http  *http.Config
}

func (*ConfigCenterConfig) ConfigCenter

func (c *ConfigCenterConfig) ConfigCenter(debug bool) ConfigCenter

type ConfigType added in v1.1.0

type ConfigType string

Directories

Path Synopsis
nacos
v1
v2

Jump to

Keyboard shortcuts

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