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