environment

package
v0.0.0-...-4aaf4b1 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package environment @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Package environment @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Package environment @Link https://gitee.com/linngc/central-mirror @Copyright Copyright (c) 2022 webos CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddress

func GetAddress() string

GetAddress 获取服务 启动 监听端口

func GetApplicationName

func GetApplicationName() string

GetApplicationName 获取当前程序名

func GetEnableOauth

func GetEnableOauth() bool

GetEnableOauth 是否开启 代理仓库授权码验证

func GetEnablePProf

func GetEnablePProf() bool

GetEnablePProf 获取是否开启 “PProf服务性能分析”

func GetEnableRestart

func GetEnableRestart() bool

GetEnableRestart 获取是否开启 “GF平滑重启程序”服务地址

func GetHttpsCertFile

func GetHttpsCertFile() string

GetHttpsCertFile 获取https 证书文件路径

func GetHttpsEnable

func GetHttpsEnable() bool

GetHttpsEnable 获取https 是否开启参数

func GetHttpsKeyFile

func GetHttpsKeyFile() string

GetHttpsKeyFile 获取https 证书密钥文件路径

func GetHttpsPort

func GetHttpsPort(def int) int

GetHttpsPort 获取https端口

func GetMainPath

func GetMainPath(absolutePath string) (runPath string)

GetMainPath 获取并组装运行程序下配置文件路径 @param absolutePath

func GetMongoUri

func GetMongoUri() string

GetMongoUri 获取mongo 链接uri

func GetStaticPath

func GetStaticPath() string

GetStaticPath 静态文件夹目录

func GetSwaggerPath

func GetSwaggerPath() string

GetSwaggerPath 获取swagger api路径

Types

This section is empty.

Jump to

Keyboard shortcuts

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