apputil

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

View Source
const (
	RedisSep = ":"
	PathSep  = "/"
)

Variables

This section is empty.

Functions

func AbsPath

func AbsPath(appConfig *configpb.App) string

func ClientDecoderEncoder

func ClientDecoderEncoder() []http.ClientOption

ClientDecoderEncoder ...

func CurrentPath

func CurrentPath() string

CurrentPath ...

func GetConfig

func GetConfig() (*configpb.Bootstrap, error)

func ID

func ID(appConfig *configpb.App) string

ID 程序ID 例:go-srv-saas:user-service:DEVELOP:v1.0.0

func Identifier

func Identifier(appConfig *configpb.App, sep string) string

Identifier app 唯一标准 @result = app.ProjectName + "/" + app.ServerName + "/" + app.ServerEnv + "/" + app.ServerVersion

func IsDebugMode

func IsDebugMode() bool

func IsLocalMode

func IsLocalMode() bool

func Path

func Path(appConfig *configpb.App) string

func RuntimePath

func RuntimePath() (string, error)

RuntimePath ...

func ServerDecoderEncoder

func ServerDecoderEncoder() []http.ServerOption

ServerDecoderEncoder ...

func SetConfig

func SetConfig(bootstrap *configpb.Bootstrap)

Types

This section is empty.

Jump to

Keyboard shortcuts

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