app

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAppName

func GetAppName() string

func GetEnv

func GetEnv() string

func ReInitAppCfg added in v0.0.2

func ReInitAppCfg()

func RespWriter added in v0.0.3

func RespWriter(r *ghttp.Request)

Types

type ApplicationConfig

type ApplicationConfig struct {
	sync.RWMutex
	AppName string
	Env     string
}

type RespBody added in v0.0.3

type RespBody struct {
	Code     int         `json:"code"    dc:"Error code"`
	Message  string      `json:"message" dc:"Error message"`
	Platform string      `json:"platform" dc:"Error Platform" `
	Data     interface{} `json:"data"    dc:"Result data for certain request according API definition"`
}

Jump to

Keyboard shortcuts

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