confgen

package
v0.0.0-...-467bd84 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertMap4Json

func ConvertMap4Json(m interface{}, cypher_func convert_cypher, c context.Context) map[string]interface{}

func GenerateAppConfigContentList

func GenerateAppConfigContentList(appname string, envlist []string, Process4env Process4envtagFunc, c context.Context) (map[string]interface{}, map[string]map[string]string, error)

func GenerateConfigContentList

func GenerateConfigContentList(appTmplYaml string, envlist []string, Process4env Process4envFunc, c context.Context) (map[string]interface{}, error)

func GenerateConfigContentListremote

func GenerateConfigContentListremote(appTmplYaml string, envlist []string, Process4env Process4envFunc, c context.Context) (map[string]interface{}, error)

func GenerateConfigString

func GenerateConfigString(appTmplYaml string, env string, c context.Context) string

func GetAppConfigContentList

func GetAppConfigContentList(appname string, envlist []string, Process4env Process4envFunc, c context.Context) (map[string]interface{}, error)

func GetOnlineConfig

func GetOnlineConfig(entityType string, entityId string, env string, c context.Context) string

func GetPostFileConfigWithDecrypt

func GetPostFileConfigWithDecrypt(file io.Reader, c context.Context) (map[string]interface{}, error)

func GetPostFileConfigWithEncrypt

func GetPostFileConfigWithEncrypt(file io.Reader, c context.Context) (map[string]interface{}, error)

func Getconfig

func Getconfig(entityType interface{}, entityId interface{}, env string, c context.Context) map[string]interface{}

func Makeconfiglist

func Makeconfiglist(c context.Context) string

Types

type Process4envFunc

type Process4envFunc func(appname string, content map[string]interface{}, env string) (map[string]interface{}, error)

type Process4envtagFunc

type Process4envtagFunc func(appname string, content map[string]interface{}, tag map[string]map[string]string, env string, c context.Context) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL