application

package
v2.0.47 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: MIT Imports: 7 Imported by: 26

Documentation

Index

Constants

View Source
const (
	AppName = "app"
)

Variables

View Source
var (
	GIT_TAG    string
	GIT_COMMIT string
	GIT_BRANCH string
	BUILD_TIME string
	GO_VERSION string
)

编译时注入

Functions

func FullVersion

func FullVersion() string

FullVersion show the version info

func Short

func Short() string

Short 版本缩写

Types

type Application

type Application struct {
	ioc.ObjectImpl

	AppGroup       string `json:"group" yaml:"group" toml:"group" env:"GROUP"`
	AppName        string `json:"name" yaml:"name" toml:"name" env:"NAME"`
	AppDescription string `json:"description" yaml:"description" toml:"description" env:"DESCRIPTION"`
	AppAddress     string `json:"address" yaml:"address" toml:"address" env:"ADDRESS"`
	EncryptKey     string `json:"encrypt_key" yaml:"encrypt_key" toml:"encrypt_key" env:"ENCRYPT_KEY"`
	CipherPrefix   string `json:"cipher_prefix" yaml:"cipher_prefix" toml:"cipher_prefix" env:"CIPHER_PREFIX"`
	// contains filtered or unexported fields
}

func Get added in v2.0.3

func Get() *Application

func (*Application) Domain added in v2.0.8

func (i *Application) Domain() string

func (*Application) GenCBCEncryptKey added in v2.0.45

func (i *Application) GenCBCEncryptKey() []byte

func (*Application) GetAppName added in v2.0.31

func (i *Application) GetAppName() string

func (*Application) Host added in v2.0.40

func (i *Application) Host() string

func (*Application) Init

func (i *Application) Init() error

func (*Application) IsInternalIP added in v2.0.13

func (i *Application) IsInternalIP() bool

func (*Application) Name

func (i *Application) Name() string

func (*Application) Priority

func (i *Application) Priority() int

优先初始化, 以供后面的组件使用

Jump to

Keyboard shortcuts

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