Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ban ¶
type Ban struct { ID string `json:"id" db:"id"` Banner string `json:"banner" db:"banner"` Banned string `json:"banned" db:"banned"` Reason string `json:"reason" db:"reason"` Created int64 `json:"created" db:"created"` Expires int64 `json:"expires" db:"expires"` Forever bool `json:"forever" db:"forever"` }
type Content ¶
type Content struct { ID string `json:"id" db:"id"` FileURL string `json:"file_url" db:"file_url"` Author string `json:"author" db:"author"` Mime string `json:"mime" db:"mime"` Tags []string `json:"tags" db:"tags"` LikeCount int `json:"like_count" db:"like_count"` DislikeCount int `json:"dislike_count" db:"dislike_count"` RepubCount int `json:"repub_count" db:"repub_count"` ViewCount int `json:"view_count" db:"view_count"` CommentCount int `json:"comment_count" db:"comment_count"` Created int64 `json:"created" db:"created"` Featured bool `json:"featured" db:"featured"` Featurable bool `json:"featurable" db:"featurable"` Removed bool `json:"removed" db:"removed"` NSFW bool `json:"nsfw" db:"nsfw"` }
func NewContent ¶
type Report ¶
type Report struct { ID string `json:"id" db:"id"` Reporter string `json:"reporter" db:"reporter"` Reported string `json:"reported" db:"reported"` Type string `json:"type" db:"type"` Reason string `json:"reason" db:"reason"` Created int64 `json:"created" db:"created"` Resolved bool `json:"resolved" db:"resolved"` Resolution string `json:"resolution" db:"resolution"` }
type User ¶
type User struct { ID string `json:"id" db:"id"` Email string `json:"email" db:"email"` Nick string `json:"nick" db:"nick"` Bio string `json:"bio" db:"bio"` SubscriberCount int `json:"subscriber_count" db:"subscriber_count"` SubscriptionCount int `json:"subscription_count" db:"subscription_count"` PostCount int `json:"post_count" db:"post_count"` Created int64 `json:"created" db:"created"` Moderator bool `json:"moderator" db:"moderator"` Admin bool `json:"admin" db:"admin"` }
Click to show internal directories.
Click to hide internal directories.