Documentation ¶
Index ¶
- Variables
- type Config
- func (c *Config) Dump(path string, value any) error
- func (c *Config) Get(nodepath string) (node Node, err error)
- func (c *Config) OnNodeChanged(callback NodeCallback)
- func (c *Config) OnNodeDeleted(callback NodeCallback)
- func (c *Config) WatchNode(ctx context.Context, nodepath string) error
- func (c *Config) WatchPath(ctx context.Context, path string) error
- type Node
- type NodeCallback
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultSessionTimeout = time.Second
)
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func (*Config) OnNodeChanged ¶
func (c *Config) OnNodeChanged(callback NodeCallback)
func (*Config) OnNodeDeleted ¶ added in v0.0.5
func (c *Config) OnNodeDeleted(callback NodeCallback)
type NodeCallback ¶
Click to show internal directories.
Click to hide internal directories.