Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WebApiConfig ¶
type WebApiConfig struct { // Array of urls which would be whitelisted on CORS headers AuthorizedUrls []string // Recaptcha key (optional) RecaptchaKey *string // Path where database file should be stored DbPath string }
Configuration fo the webserver
type WebComment ¶
type WebComment struct { ID int `json:"id"` Uri string `json:"uri"` Body string `json:"body"` Author *string `json:"author"` Email *string `json:"email"` Replies *[]WebComment `json:"replies"` Created *time.Time `json:"created"` Modified *time.Time `json:"modified"` Likes int64 `json:"likes"` Dislikes int64 `json:"dislikes"` }
func (*WebComment) MarshalJSON ¶
func (c *WebComment) MarshalJSON() ([]byte, error)
type WebCommentThread ¶
type WebCommentThread struct { Count int `json:"count"` Comments []WebComment `json:"comments"` }
Click to show internal directories.
Click to hide internal directories.