Documentation ¶
Index ¶
- Constants
- func Decrypt(value string) string
- func Download(url string) (data []byte, err error)
- func Encrypt(value string) string
- func MD5(value string) string
- func MD5Wrap(value string) string
- func StatusCodeToError(statusCode int) (err error)
- type AppCtrl
- func (instance *AppCtrl) AddPathWatchdog(path string, callback func())
- func (instance *AppCtrl) AddStopOperation(name string, callback gg_stoppable.ShutdownCallback) *AppCtrl
- func (instance *AppCtrl) Deploy(filename string, text string, overwrite bool) (err error)
- func (instance *AppCtrl) DeployIntoWorkspace(path string, tpl string, overwrite bool) (err error)
- func (instance *AppCtrl) Events() *gg_events.Emitter
- func (instance *AppCtrl) Info() *ApplicationInfo
- func (instance *AppCtrl) Join()
- func (instance *AppCtrl) Logger() gg_.ILogger
- func (instance *AppCtrl) OnStart(f func())
- func (instance *AppCtrl) OnStop(f func())
- func (instance *AppCtrl) SetAppName(value string)
- func (instance *AppCtrl) SetAppSalt(value string)
- func (instance *AppCtrl) SetAppVersion(value string)
- func (instance *AppCtrl) SetEvents(value *gg_events.Emitter)
- func (instance *AppCtrl) SetLogFilename(value string)
- func (instance *AppCtrl) SetLogLevel(value string)
- func (instance *AppCtrl) SetLogRotation(value bool)
- func (instance *AppCtrl) SetLogger(value gg_.ILogger)
- func (instance *AppCtrl) SetStopSleep(value time.Duration)
- func (instance *AppCtrl) SetStopTimeout(value time.Duration)
- func (instance *AppCtrl) Start() bool
- func (instance *AppCtrl) State() *gg_observable.ObservableObj
- func (instance *AppCtrl) Stop() bool
- func (instance *AppCtrl) String() string
- func (instance *AppCtrl) WorkspaceDir() string
- func (instance *AppCtrl) WorkspacePath(path string) string
- type AppCtrlHelper
- type ApplicationInfo
- func (instance *ApplicationInfo) AddError(context string, err error)
- func (instance *ApplicationInfo) AddLibVersion(name, version string) *ApplicationInfo
- func (instance *ApplicationInfo) GetLicense() *license_commons.License
- func (instance *ApplicationInfo) PathRoot(value ...string) string
- func (instance *ApplicationInfo) PathSettings(value ...string) string
- func (instance *ApplicationInfo) PrintInfo() string
- func (instance *ApplicationInfo) PrintLicense() string
- func (instance *ApplicationInfo) Refresh() *ApplicationInfo
- func (instance *ApplicationInfo) SetLicense(license *license_commons.License)
- func (instance *ApplicationInfo) StartedAgo() (response string)
- func (instance *ApplicationInfo) String() string
- type ApplicationInfoError
Constants ¶
View Source
const ( EventOnStartApp = gg_.EventOnStartApp EventOnCloseApp = gg_.EventOnCloseApp )
Variables ¶
This section is empty.
Functions ¶
func StatusCodeToError ¶
Types ¶
type AppCtrl ¶
type AppCtrl struct {
// contains filtered or unexported fields
}
func NewAppCtrl ¶
func (*AppCtrl) AddPathWatchdog ¶ added in v0.2.29
AddPathWatchdog activate an observer over a path directory
func (*AppCtrl) AddStopOperation ¶
func (instance *AppCtrl) AddStopOperation(name string, callback gg_stoppable.ShutdownCallback) *AppCtrl
func (*AppCtrl) DeployIntoWorkspace ¶
func (*AppCtrl) Info ¶
func (instance *AppCtrl) Info() *ApplicationInfo
func (*AppCtrl) SetAppName ¶
func (*AppCtrl) SetAppSalt ¶
func (*AppCtrl) SetAppVersion ¶
func (*AppCtrl) SetLogFilename ¶
func (*AppCtrl) SetLogLevel ¶
func (*AppCtrl) SetLogRotation ¶
func (*AppCtrl) SetStopSleep ¶ added in v0.2.41
func (*AppCtrl) SetStopTimeout ¶ added in v0.2.41
func (*AppCtrl) State ¶ added in v0.2.25
func (instance *AppCtrl) State() *gg_observable.ObservableObj
State returns the App "observable" state.
func (*AppCtrl) WorkspaceDir ¶
func (*AppCtrl) WorkspacePath ¶
type AppCtrlHelper ¶
type AppCtrlHelper struct { }
var App *AppCtrlHelper
func (*AppCtrlHelper) Main ¶ added in v0.2.29
func (helper *AppCtrlHelper) Main() (ctrl *AppCtrl, err error)
type ApplicationInfo ¶
type ApplicationInfo struct { AppName string `json:"app-name"` AppVersion string `json:"app-version"` AppSalt string `json:"app-salt"` MimeJS string `json:"mime-js"` MimeCSS string `json:"mime-css"` MimeHTML string `json:"mime-html"` MimeJSON string `json:"mime-json"` StartTime time.Time `json:"start-time"` Mode string `json:"running-mode"` UIMode string `json:"ui-mode"` Root string `json:"root"` LaunchDir string `json:"launch-dir"` SettingsFile string `json:"settings-file"` SettingsLoaded bool `json:"settings-loaded"` ProcessPID int `json:"process-pid"` UserHome string `json:"user-home"` UserName string `json:"user-name"` SysHostName string `json:"sys-hostname"` SysKernel string `json:"sys-kernel"` SysPlatform string `json:"sys-platform"` SysCPUs int `json:"sys-cpu"` SysMemoryUsage string `json:"sys-memoryusage"` Errors []*ApplicationInfoError `json:"errors"` License *license_commons.License `json:"license"` LibVersions map[string]string `json:"lib-versions"` }
func NewApplicationInfo ¶
func NewApplicationInfo(dirWork string) *ApplicationInfo
func (*ApplicationInfo) AddError ¶
func (instance *ApplicationInfo) AddError(context string, err error)
func (*ApplicationInfo) AddLibVersion ¶ added in v0.2.25
func (instance *ApplicationInfo) AddLibVersion(name, version string) *ApplicationInfo
func (*ApplicationInfo) GetLicense ¶
func (instance *ApplicationInfo) GetLicense() *license_commons.License
func (*ApplicationInfo) PathRoot ¶
func (instance *ApplicationInfo) PathRoot(value ...string) string
func (*ApplicationInfo) PathSettings ¶
func (instance *ApplicationInfo) PathSettings(value ...string) string
func (*ApplicationInfo) PrintInfo ¶
func (instance *ApplicationInfo) PrintInfo() string
func (*ApplicationInfo) PrintLicense ¶
func (instance *ApplicationInfo) PrintLicense() string
func (*ApplicationInfo) Refresh ¶
func (instance *ApplicationInfo) Refresh() *ApplicationInfo
func (*ApplicationInfo) SetLicense ¶
func (instance *ApplicationInfo) SetLicense(license *license_commons.License)
func (*ApplicationInfo) StartedAgo ¶
func (instance *ApplicationInfo) StartedAgo() (response string)
func (*ApplicationInfo) String ¶
func (instance *ApplicationInfo) String() string
type ApplicationInfoError ¶
Click to show internal directories.
Click to hide internal directories.