local

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

type Local

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

func (*Local) HandleConfig

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

本地配置

type ReloadType added in v1.1.0

type ReloadType string

Jump to

Keyboard shortcuts

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