mirror of
https://github.com/stashapp/stash.git
synced 2025-12-18 04:44:37 +03:00
@@ -142,7 +142,8 @@ func (e MissingConfigError) Error() string {
|
||||
}
|
||||
|
||||
type Instance struct {
|
||||
isNewSystem bool
|
||||
cpuProfilePath string
|
||||
isNewSystem bool
|
||||
}
|
||||
|
||||
var instance *Instance
|
||||
@@ -162,6 +163,13 @@ func (i *Instance) SetConfigFile(fn string) {
|
||||
viper.SetConfigFile(fn)
|
||||
}
|
||||
|
||||
// GetCPUProfilePath returns the path to the CPU profile file to output
|
||||
// profiling info to. This is set only via a commandline flag. Returns an
|
||||
// empty string if not set.
|
||||
func (i *Instance) GetCPUProfilePath() string {
|
||||
return i.cpuProfilePath
|
||||
}
|
||||
|
||||
func (i *Instance) Set(key string, value interface{}) {
|
||||
viper.Set(key, value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user