Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

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. }