Versions in this module Expand all Collapse all v0 v0.0.1 Jun 6, 2024 Changes in this version + const ConfigAdd + const ConfigChange + const ConfigRemove + var ArrayBlanks = "- " + var Dot = "." + var IndentBlanks = " " + var NewLine = "\n" + var SignEqual = "=" + var SignSemicolon = ":" + var YamlNewLineDom = "|\n" + func GetPropertiesItemLineList(content string) []string + func IsJson(content string) bool + func IsProperty(content string) bool + func IsYaml(content string) bool + func JsonToFlatMap(content string) (map[string]string, error) + func JsonToMap(contentOfJson string) (map[string]interface{}, error) + func JsonToYaml(contentOfJson string) (string, error) + func KvToProperties(key, value string, valueType TypeEnum) (string, error) + func MapToProperties(dataMap map[string]interface{}) (string, error) + func ObjectToYaml(value interface{}) (string, error) + func PropertiesEntityToYaml(properties Properties) (string, error) + func PropertiesToMap(contentOfProperties string) (map[string]string, error) + func PropertiesToYaml(contentOfProperties string) (string, error) + func RoutConfig(party iris.Party) + func RouteInner(app *iris.Application) + func YamlCheck(content string) error + func YamlToFlatMap(content string) (map[string]string, error) + func YamlToJson(contentOfYaml string) (string, error) + func YamlToList(contentOfYaml string) ([]interface{}, error) + func YamlToMap(contentOfYaml string) (map[string]interface{}, error) + func YamlToProperties(contentOfYaml string) (string, error) + func YamlToPropertiesWithKey(key string, contentOfYaml string) (string, error) + type ConfigChangeEvent struct + Before string + Current string + Key string + Namespace string + Type ConfigChangeType + type ConfigChangeRequest struct + AppId string + Diff *NamespaceDiff + Group string + type ConfigChangeType string + type ConvertError struct + func (convertError *ConvertError) Error() string + type NamespaceClientRequest struct + AppId string + Group string + Namespaces []string + SharedNamespaces []string + func (r *NamespaceClientRequest) Keys() []string + type NamespaceDiff struct + Added map[string]string + Changed map[string]StringPair + Namespace string + Removed map[string]string + Same bool + Unchanged map[string]string + type NamespaceEditHistory struct + Content string + ModifiedBy string + Time time.Time + type NamespaceHistory []*NamespaceEditHistory + func (n NamespaceHistory) Len() int + func (n NamespaceHistory) Less(i, j int) bool + func (n NamespaceHistory) Swap(i, j int) + type NamespaceReq struct + AppId string + Content string + Group string + Namespace string + func (ns *NamespaceReq) Valid() error + type Properties struct + Value map[string]string + type StringPair struct + Left string + Right string + func JsonToKvList(content string) ([]StringPair, error) + func YamlToKvList(contentOfYaml string) ([]StringPair, error) + type TypeEnum int8 + const JSON + const PROPERTIES + const STRING + const YAML + type YamlNode struct