conf

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Cache

func Cache(namespace string, client agollo.Client) agcache.CacheInterface

Cache 配置缓存

func CheckKey

func CheckKey(namespace string, client agollo.Client)

CheckKey 检查配置键

func Init

func Init(opts *Options) (client agollo.Client, err error)

Init 初始化

func Load

func Load()

Load 载入ENV配置

Types

type Options

type Options struct {
	AppID          string `json:"app_id"`
	Cluster        string `json:"cluster"`
	IP             string `json:"ip"`
	NamespaceName  string `json:"namespace_name"`
	IsBackupConfig bool   `json:"is_backup_config"`
	Secret         string `json:"secret"`
}

Options 配置结构体

Jump to

Keyboard shortcuts

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