Documentation ¶
Index ¶
- func LoadConfigFromLocalFile(confPath string, handler *CCHandler) error
- func New(ctx context.Context, procName string, confPath string, disc crd.ConfRegDiscvIf, ...) error
- func NewConfigCenter(ctx context.Context, zkAddr string, procName string, confPath string, ...) error
- type CC
- type CCHandler
- type ProcHandlerFunc
- type ProcessConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfigFromLocalFile ¶
Types ¶
type CCHandler ¶
type CCHandler struct { OnProcessUpdate ProcHandlerFunc OnLanguageUpdate func(previous, current map[string]language.LanguageMap) OnErrorUpdate func(previous, current map[string]errors.ErrorCode) }
type ProcHandlerFunc ¶
type ProcHandlerFunc func(previous, current ProcessConfig)
type ProcessConfig ¶
func ParseConfigWithData ¶
func ParseConfigWithData(data []byte) (*ProcessConfig, error)
func ParseConfigWithFile ¶
func ParseConfigWithFile(filePath string) (*ProcessConfig, error)
Click to show internal directories.
Click to hide internal directories.