utils

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNamespace added in v0.0.2

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

func GetTenantName added in v0.0.2

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

func PrintLog

func PrintLog(contents ...interface{})

unittest to use

func SetAppConfToCtx added in v0.0.2

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

func SetCtx added in v0.0.2

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

func SetUserMetaInfoToContext added in v0.0.2

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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