Documentation
¶
Overview ¶
Package notifications provides notification commands for GitScrum CLI
Index ¶
- func NewCmdNotifications(f *factory.Factory) *cobra.Command
- func NewCmdNotificationsClear(f *factory.Factory) *cobra.Command
- func NewCmdNotificationsRead(f *factory.Factory) *cobra.Command
- func NewCmdNotificationsReadAll(f *factory.Factory) *cobra.Command
- func NewCmdSearch(f *factory.Factory) *cobra.Command
- type FeedUser
- type Notification
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCmdNotifications ¶
NewCmdNotifications creates the notifications command
func NewCmdNotificationsClear ¶
NewCmdNotificationsClear clears all notifications
func NewCmdNotificationsRead ¶
NewCmdNotificationsRead marks a notification as read
func NewCmdNotificationsReadAll ¶
NewCmdNotificationsReadAll marks all notifications as read
Types ¶
type FeedUser ¶
type FeedUser struct {
UUID string `json:"uuid"`
Name string `json:"name"`
Username string `json:"username"`
}
FeedUser represents a user in a feed notification
type Notification ¶
type Notification struct {
UUID string `json:"uuid"`
User FeedUser `json:"user"`
Resource string `json:"resource"`
Action string `json:"action"`
Message string `json:"message"`
CreatedAt *api.DateResource `json:"created_at"`
}
Notification represents a feed notification (FeedUserResource)
Click to show internal directories.
Click to hide internal directories.