Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAppStateContent ¶
GetAppStateContent gets an app state from database
func SaveAppStateContent ¶
SaveAppStateContent saves the app state item to database
Types ¶
type AppState ¶
type AppState struct { ID string `xorm:"pk varchar(200)"` Revision int64 Content string `xorm:"LONGTEXT"` }
AppState represents a state record in database if one day we would make Gitea run as a cluster, we can introduce a new field `Scope` here to store different states for different nodes
Click to show internal directories.
Click to hide internal directories.