watcher

package
v0.0.0-...-208d2a3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const EventTypeAdd = "add"
View Source
const EventTypeDelete = "delete"
View Source
const EventTypePatch = "patch"
View Source
const EventTypeUpdate = "update"

Variables

This section is empty.

Functions

func DelValue

func DelValue(key string)

func GetValue

func GetValue(key string) (any, bool)

func NewWatcher

func NewWatcher() *configWatcher

func SetValue

func SetValue(key string, value meta.Cloneable)

Types

type Event

type Event struct {
	Type      EventType      `json:"type"`
	Key       string         `json:"key"`
	JsonValue []byte         `json:"json_value"`
	Patch     diff.Changelog `json:"patch"`
}

type EventType

type EventType string

Jump to

Keyboard shortcuts

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