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.
Click to show internal directories.
Click to hide internal directories.