app_param

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppParamMiddleware

func AppParamMiddleware() gin.HandlerFunc

func GetFrom

func GetFrom(ctx context.Context) (from string)

获取来源

func GetPlatform

func GetPlatform(ctx context.Context) (platform string)

获取平台

func GetVersion

func GetVersion(ctx context.Context) (version string)

获取版本号

Types

type AppParam

type AppParam struct {
	From     string // 来源服务
	Version  string // 版本号
	Platform string // 平台: web android ios
}

内部业务请求之间透传的参数

func GetAppParam

func GetAppParam(ctx context.Context) (appParam *AppParam)

Jump to

Keyboard shortcuts

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