Documentation ¶
Overview ¶
Package base implements a common application base currently shared by bridge and IE. The base includes the following:
- access to standard filesystem locations like config, cache, logging dirs
- an extensible crash handler
- versioned cache directory
- persistent settings
- event listener
- credentials store
- pmapi Manager
In addition, the base initialises logging and reacts to command line arguments which control the log verbosity and enable cpu/memory profiling.
Index ¶
Constants ¶
View Source
const ( FlagGRPC = "grpc" // FlagGRPC starts the gRPC frontend FlagGRPCShort = "g" FlagCLI = "cli" // FlagCLI indicate to start with command line interface. FlagLauncher = "launcher" FlagNoWindow = "no-window" FlagParentPID = "parent-pid" )
Variables ¶
This section is empty.
Functions ¶
func StripProcessSerialNumber ¶
StripProcessSerialNumber removes additional flag from macOS. More info: http://mirror.informatimago.com/next/developer.apple.com/documentation/Carbon/Reference/Process_Manager/prmref_main/data_type_5.html#//apple_ref/doc/uid/TP30000208/C001951
Types ¶
type Base ¶
type Base struct { SentryReporter *sentry.Reporter CrashHandler *crash.Handler Locations *locations.Locations Settings *settings.Settings Lock *os.File Cache *cache.Cache Listener listener.Listener Creds *credentials.Store CM pmapi.Manager CookieJar *cookies.Jar UserAgent *useragent.UserAgent Updater *updater.Updater Versioner *versioner.Versioner TLS *tls.TLS Autostart *autostart.App Name string // the app's name // contains filtered or unexported fields }
func (*Base) AddTeardownAction ¶
AddTeardownAction adds an action to perform during app teardown.
func (*Base) ForceLauncher ¶ added in v2.4.0
func (*Base) SetMainExecutable ¶ added in v2.4.0
func (*Base) SetToRestart ¶
func (b *Base) SetToRestart()
SetToRestart sets the app to restart the next time it is closed.
Click to show internal directories.
Click to hide internal directories.