config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

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