utils

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespace

func GetNamespace(ctx context.Context, appCtx *structs.AppCtx) (string, error)

func GetTenantName

func GetTenantName(ctx context.Context, appCtx *structs.AppCtx) (string, error)

func GoWithRecover

func GoWithRecover(ctx context.Context, f func() error)

func LocalDebugMode

func LocalDebugMode(ctx context.Context) context.Context

LocalDebugMode 设置调试模式

func ParseFlowVariableToMap

func ParseFlowVariableToMap(variables intern.ExecuteFlowVariables) map[string]interface{}

func ParseInt64

func ParseInt64(v interface{}) (int64, error)

func ParseMapToFlowVariable

func ParseMapToFlowVariable(params map[string]interface{}) intern.ExecuteFlowVariables

func ParseMultilingualNewToOld

func ParseMultilingualNewToOld(new structs.Multilingual) (old intern.Multilingual)

func SetAppConfToCtx

func SetAppConfToCtx(ctx context.Context, appCtx *structs.AppCtx) context.Context

func SetCtx

func SetCtx(ctx context.Context, appCtx *structs.AppCtx, method string) context.Context

func SetLaneNameToCtx

func SetLaneNameToCtx(ctx context.Context, lane string) context.Context

SetLaneNameToCtx 设置泳道环境, 只在调试模式下生效

Types

This section is empty.

Jump to

Keyboard shortcuts

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