local

package
v1.4.9 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 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

type ReloadType string

Jump to

Keyboard shortcuts

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