2021-10-21 09:22:43 +00:00
|
|
|
// Copyright 2021 The Gitea Authors. All rights reserved.
|
2022-11-27 18:20:29 +00:00
|
|
|
// SPDX-License-Identifier: MIT
|
2021-10-21 09:22:43 +00:00
|
|
|
|
2022-10-16 23:29:26 +00:00
|
|
|
package system
|
2021-10-21 09:22:43 +00: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 16:53:08 +00:00
|
|
|
LastAppPath string `json:"last_app_path"`
|
|
|
|
LastCustomConf string `json:"last_custom_conf"`
|
2021-10-21 09:22:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Name returns the item name
|
|
|
|
func (a RuntimeState) Name() string {
|
|
|
|
return "runtime-state"
|
|
|
|
}
|