icfg

package
v0.0.0-...-6295505 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package icfg is responsible for local instance.Config

instConfig are created by daemon discover. It provides the cluster data at cluster.node.<localhost>.instance.<path>.config It reloads config updates:

  • for not cluster config
  • when on ConfigFileUpdated is fired
  • when on InstanceConfigUpdated for local cluster is fired (scope may need refresh)
  • for cluster config
  • when on ClusterConfigUpdated for local node is fired

The worker routine is terminated when ConfigFileUpdated is fired, or when daemon discover context is done.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(parent context.Context, p naming.Path, filename string, svcDiscoverCmd chan<- any) error

Start launch goroutine instConfig worker for a local instance config

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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