Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Notification ¶
type Notification struct { Uuid string `json:"uuid"` CreatedAt time.Time `json:"created_at,omitempty"` User User `json:"user"` Seen bool `json:"seen"` Link string `json:"link"` NotificationType NotificationType `json:"notificationType,omitempty"` TriggeredByUser User `json:"triggered_by_user,omitempty"` }
type NotificationAcknowledgement ¶ added in v0.1.12
type NotificationAcknowledgement struct { DatetimeStarted time.Time `json:"datetime_started"` DatetimeEnded time.Time `json:"datetime_ended"` }
func DecodeRequestToNotificationAcknowledgement ¶ added in v0.1.12
func DecodeRequestToNotificationAcknowledgement(r *http.Request) (*NotificationAcknowledgement, error)
type NotificationType ¶
type NotificationType string
const ( LIKED NotificationType = "liked" FOLLOWED NotificationType = "followed" REPLIED NotificationType = "replied" )
List of NotificationType
Click to show internal directories.
Click to hide internal directories.