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 ¶
Types ¶
type Application ¶
type Application struct { ioc.ObjectImpl AppName string `json:"name" yaml:"name" toml:"name" env:"NAME"` AppDescription string `json:"description" yaml:"description" toml:"description" env:"DESCRIPTION"` Domain string `json:"domain" yaml:"domain" toml:"domain" env:"DOMAIN"` Security bool `json:"security" yaml:"security" toml:"security" env:"SECURITY"` 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"` }
func Get ¶ added in v2.0.3
func Get() *Application
func (*Application) Endpoint ¶ added in v2.0.13
func (i *Application) Endpoint() string
func (*Application) GetAppNameWithDefault ¶ added in v2.0.9
func (i *Application) GetAppNameWithDefault(defaultValue string) 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
Click to show internal directories.
Click to hide internal directories.