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