config

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: Apache-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigurationFileGenerator

type ConfigurationFileGenerator interface {
	/**
	Input: parameter definition file name
	Output:
		1. operation interface and code for parameters
		2. configuraion file for parameters
	*/
	Generate() error
}

* Analyse the template files. Generate configuration file, operation interfaces.

func NewConfigurationFileGenerator

func NewConfigurationFileGenerator(defFileName string) ConfigurationFileGenerator

type ConfigurationFileGeneratorImpl

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

func (*ConfigurationFileGeneratorImpl) Generate

func (cfgi *ConfigurationFileGeneratorImpl) Generate() error

type ConfigurationFileHotLoader

type ConfigurationFileHotLoader interface {
	/**
	register a configuration file into the loader.
	path : the path of the configuration file
	period: load the configration every period
	configObject: the target that will be updated
	*/
	Register(path string, period int64, configObject interface{})

	/**
	unregister a configuration file from the loader.
	the configuration file will be loaded again.
	*/
	Unregister(path string)
}

* load items from configuration file periodly.

Jump to

Keyboard shortcuts

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