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