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

# Functions

ActivityReadable return whether doer can read activities of user.
CountActionCreatedUnixString count actions where created_unix is an empty string.
CreateOrUpdateIssueNotifications creates an issue notification for each watcher, or updates it if already exists receiverID > 0 just send to receiver, else send to all watcher.
CreateRepoTransferNotification creates notification for the user a repository was transferred to.
DeleteIssueActions delete all actions related with issueID.
DeleteOldActions deletes all old actions from database.
FixActionCreatedUnixString set created_unix to zero if it is an empty string.
GetActivityStats return stats for repository at given time range.
GetActivityStatsTopAuthors returns top author stats for git commits for all branches.
GetFeeds returns actions according to the provided options.
GetIssueNotification return the notification about an issue.
GetNotificationByID return notification by ID.
GetStatistic returns the database statistics.
GetTotalContributionsInHeatmap returns the total number of contributions in a heatmap.
GetUIDsAndNotificationCounts returns the unread counts for every user between the two provided times.
GetUserHeatmapDataByUser returns an array of UserHeatmapData.
GetUserHeatmapDataByUserTeam returns an array of UserHeatmapData.
NotifyWatchers creates batch of actions for every watcher.
NotifyWatchersActions creates batch of actions for every watcher.
SetIssueReadBy sets issue to be read by given user.
SetNotificationStatus change the notification status.
SetRepoReadBy sets repo to be visited by given user.
UpdateNotificationStatuses updates the statuses of all of a user's notifications that are of the currentStatus type to the desiredStatus.

# Constants

21.
27.
12.
14.
10.
23.
5.
6.
7.
1.
17.
16.
11.
19.
20.
18.
24.
26.
25.
9.
22.
2.
13.
15.
3.
8.
4.
NotificationSourceCommit is a notification of a commit.
NotificationSourceIssue is a notification of an issue.
NotificationSourcePullRequest is a notification of a pull request.
NotificationSourceRepository is a notification for a repository.
NotificationStatusPinned represents a pinned notification.
NotificationStatusRead represents a read notification.
NotificationStatusUnread represents an unread notification.

# Structs

Action represents user operation type and other information to repository.
ActivityAuthorData represents statistical git commit count data.
ActivityStats represents issue and pull request information.
FindNotificationOptions represent the filters for notifications.
GetFeedsOptions options for retrieving feeds.
IssueByLabelCount contains the number of issue group by label.
IssueByRepositoryCount contains the number of issue group by repository.
Notification represents a notification.
Statistic contains the database statistics.
UserHeatmapData represents the data needed to create a heatmap.
UserIDCount is a simple coalition of UserID and Count.

# Type aliases

ActionList defines a list of actions.
ActionType represents the type of an action.
NotificationList contains a list of notifications.