replace

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceDuration added in v2.0.1

func ReplaceDuration(props map[string]interface{}) (bool, map[string]interface{})

func ReplacePassword

func ReplacePassword(props map[string]interface{}) (bool, map[string]interface{})

func ReplacePropsDBURL

func ReplacePropsDBURL(props map[string]interface{}) (bool, map[string]interface{})

func ReplacePropsWithOption added in v2.0.1

func ReplacePropsWithOption(props map[string]interface{}, opts ...ReplacePropsOption) (bool, map[string]interface{})

func ReplacePropsWithPlug added in v2.0.1

func ReplacePropsWithPlug(plug string, props map[string]interface{}) (bool, map[string]interface{})

func ReplaceRuleJson

func ReplaceRuleJson(ruleJson string, isTesting bool) string

Types

type ReplacePropsConfig added in v2.0.1

type ReplacePropsConfig struct {
	DisableReplaceDbUrl    bool
	DisableReplacePassword bool
	DisableReplaceDuration bool
}

type ReplacePropsOption added in v2.0.1

type ReplacePropsOption func(c *ReplacePropsConfig)

func WithDisableReplaceDburl added in v2.0.1

func WithDisableReplaceDburl() ReplacePropsOption

func WithDisableReplacePassword added in v2.0.1

func WithDisableReplacePassword() ReplacePropsOption

Jump to

Keyboard shortcuts

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