gtbox_app

package
v0.1.75 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: BSD-3-Clause Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	sync.RWMutex            // 嵌入读写锁以支持并发读写
	AppName                 string
	BundleID                string
	Version                 string
	Description             string
	HTTPRequestTimeOut      time.Duration
	NetListenDefaultAddress string
	NetListenTCPVersion     string
	CurrentRunMode          gtbox.RunMode
	GitCommitHash           string
	GitCommitTime           string
	GoVersion               string
	PackageOS               string
	PackageTime             string
	AppRunAsDir             string
	AppLocalDBPath          string
	AppConfigFilePath       string
	AppLogPath              string
	StartTime               time.Time
}

func NewApp

func NewApp(appName, version, bundleID, description string, runMode gtbox.RunMode) *App

Jump to

Keyboard shortcuts

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