code.gitea.io/gitea@v1.19.3/modules/system/item_runtime.go (about)

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