2021-10-21 05:22:43 -04:00
|
|
|
// Copyright 2021 The Gitea Authors. All rights reserved.
|
2022-11-27 13:20:29 -05:00
|
|
|
// SPDX-License-Identifier: MIT
|
2021-10-21 05:22:43 -04:00
|
|
|
|
2022-10-16 19:29:26 -04:00
|
|
|
package system
|
2021-10-21 05:22:43 -04:00
|
|
|
|
|
|
|
// RuntimeState contains app state for runtime, and we can save remote version for update checker here in future
|
|
|
|
type RuntimeState struct {
|
2022-10-28 12:53:08 -04:00
|
|
|
LastAppPath string `json:"last_app_path"`
|
|
|
|
LastCustomConf string `json:"last_custom_conf"`
|
2021-10-21 05:22:43 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// Name returns the item name
|
|
|
|
func (a RuntimeState) Name() string {
|
|
|
|
return "runtime-state"
|
|
|
|
}
|