env

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

* @Author: reel * @Date: 2023-05-11 19:52:08 * @LastEditors: reel * @LastEditTime: 2023-06-24 06:45:53 * @Description: 用于配置app环境变量

Index

Constants

View Source
const (
	ENV_PROJECT          = "FBS.Core"
	ENV_VERSION          = "1.0"
	ENV_MODE_DEV         = "dev"
	ENV_MODE_FAT         = "fat"
	ENV_MODE_PRO         = "pro"
	ENV_MSC_DEPAULT_PORT = ":6618"
)

Variables

This section is empty.

Functions

func Init

func Init()

func SetAppName

func SetAppName(name string)

func SetAppVersion

func SetAppVersion(version string)

func SetMSCAddr

func SetMSCAddr(addr string)

Types

type Environment

type Environment interface {
	Value() string
	Super() bool
	Then() int64
	Mode() string
	DBInit() string
	MscAddr() string
	Project() string
	Version() string
	AppName() string
	DataPath() string

	AppVersion() string

	Level() logrus.Level
	GormLogLevel() logger.LogLevel
	// contains filtered or unexported methods
}

func Active

func Active() Environment

Jump to

Keyboard shortcuts

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