local

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ReloadTypeFsNotify = "fsnotify"
	ReloadTypeTimer    = "timer"
)

Variables

View Source
var ConfigCenter = &Local{}

Functions

This section is empty.

Types

type Local

type Local struct {
	local.Config
	ConfigPath string
	ReloadType ReloadType `json:"reloadType" comment:"fsnotify,timer"` // 本地分为Watch和AutoReload,Watch采用系统调用通知,AutoReload定时器去查文件是否变更
}

func (*Local) HandleConfig

func (cc *Local) HandleConfig(handle func([]byte)) error

本地配置

func (*Local) Type added in v1.7.0

func (cc *Local) Type() string

type ReloadType

type ReloadType string

Jump to

Keyboard shortcuts

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