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
type Post ¶ added in v0.1.18
type Post struct { Uuid string `json:"uuid"` Text string `json:"text,omitempty"` Draft bool `json:"draft"` Visibility Visibility `json:"visibility,omitempty"` CreatedAt time.Time `json:"created_at"` User User `json:"user"` }
func DecodeMessageToPost ¶ added in v0.1.18
type User ¶
type User struct { Uuid string `json:"uuid"` Username string `json:"username,omitempty"` Name string `json:"name,omitempty"` ProfilePic string `json:"profile_pic,omitempty"` IsBanned bool `json:"is_banned,omitempty"` }
func DecodeMessageToUser ¶
type Visibility ¶ added in v0.1.18
type Visibility string
const ( PUBLIC Visibility = "public" FOLLOWING Visibility = "following" PRIVATE Visibility = "private" )
List of Visibility
Click to show internal directories.
Click to hide internal directories.