config

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultFilePath   = "./etc/"
	DefaultConfigName = "config"
)

Functions

func Setup

func Setup(configHandlers ...*WatchConfigHandler)

Types

type WatchConfigHandler

type WatchConfigHandler struct {
	Key      string
	OldValue string
	Func     WatchHandler
}

type WatchHandler

type WatchHandler func(string) error

Jump to

Keyboard shortcuts

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