Versions in this module Expand all Collapse all v0 v0.0.4 Sep 14, 2020 Changes in this version + const ConvertSourceError + const HandleSourceError + const OK + const UpdatePropertyError + func CircuitBreakerRuleJsonArrayParser(src []byte) (interface{}, error) + func CircuitBreakerRulesUpdater(data interface{}) error + func FlowRuleJsonArrayParser(src []byte) (interface{}, error) + func FlowRulesUpdater(data interface{}) error + func HotSpotParamRuleJsonArrayParser(src []byte) (interface{}, error) + func HotSpotParamRulesUpdater(data interface{}) error + func SystemRuleJsonArrayParser(src []byte) (interface{}, error) + func SystemRulesUpdater(data interface{}) error + type Base struct + func (b *Base) AddPropertyHandler(h PropertyHandler) + func (b *Base) Handle(src []byte) (err error) + func (b *Base) RemovePropertyHandler(h PropertyHandler) + type Code uint32 + type DataSource interface + AddPropertyHandler func(h PropertyHandler) + Initialize func() error + ReadSource func() ([]byte, error) + RemovePropertyHandler func(h PropertyHandler) + type DefaultPropertyHandler struct + func NewCircuitBreakerRulesHandler(converter PropertyConverter) *DefaultPropertyHandler + func NewDefaultPropertyHandler(converter PropertyConverter, updater PropertyUpdater) *DefaultPropertyHandler + func NewSystemRulesHandler(converter PropertyConverter) *DefaultPropertyHandler + func (h *DefaultPropertyHandler) Handle(src []byte) error + type Error struct + func NewError(code Code, desc string) Error + func (e Error) Code() Code + func (e Error) Error() string + type MockPropertyHandler struct + func (m *MockPropertyHandler) Handle(src []byte) error + type PropertyConverter func(src []byte) (interface{}, error) + type PropertyHandler interface + Handle func(src []byte) error + func NewFlowRulesHandler(converter PropertyConverter) PropertyHandler + func NewHotSpotParamRulesHandler(converter PropertyConverter) PropertyHandler + type PropertyUpdater func(data interface{}) error