package
1.24.0-dev
Repository: https://github.com/go-gitea/gitea.git
Documentation: pkg.go.dev

# Functions

CountNotices returns number of notices.
CreateNotice creates new system notice.
CreateRepositoryNotice creates new system notice with type NoticeRepository.
DeleteNotices deletes all notices with ID from start to end (inclusive).
DeleteOldSystemNotices deletes all old system notices from database.
GetAppStateContent gets an app state from database.
Notices returns notices in given page.
RemoveAllWithNotice removes all directories in given path and creates a system notice when error occurs.
RemoveStorageWithNotice removes a file from the storage and creates a system notice when error occurs.
SaveAppStateContent saves the app state item to database.

# Constants

NoticeRepository type.
NoticeTask type.

# Structs

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.
Notice represents a system notice for admin.

# Type aliases

NoticeType describes the notice type.