Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

item_runtime.go 439B

123456789101112131415
  1. // Copyright 2021 The Gitea Authors. All rights reserved.
  2. // SPDX-License-Identifier: MIT
  3. package system
  4. // RuntimeState contains app state for runtime, and we can save remote version for update checker here in future
  5. type RuntimeState struct {
  6. LastAppPath string `json:"last_app_path"`
  7. LastCustomConf string `json:"last_custom_conf"`
  8. }
  9. // Name returns the item name
  10. func (a RuntimeState) Name() string {
  11. return "runtime-state"
  12. }