caret

[ACTIVE] a command line tool for browsing Lobsters in your terminal
git clone git://git.figbert.com/caret.git
Log | Files | Refs | README | LICENSE

schema.go (1754B)


      1 package api
      2 
      3 type User struct {
      4 	Username       string `json:"username"`
      5 	CreatedAt      string `json:"created_at"`
      6 	IsAdmin        bool   `json:"is_admin"`
      7 	About          string `json:"about"`
      8 	IsModerator    bool   `json:"is_moderator"`
      9 	Karma          int    `json:"karma"`
     10 	AvatarURL      string `json:"avatar_url"`
     11 	InvitedByUser  string `json:"invited_by_user"`
     12 	GitHubUsername string `json:"github_username"`
     13 }
     14 
     15 type Comment struct {
     16 	ShortID       string `json:"short_id"`
     17 	ShortIDURL    string `json:"short_id_url"`
     18 	CreatedAt     string `json:"created_at"`
     19 	UpdatedAt     string `json:"updated_at"`
     20 	IsDeleted     bool   `json:"is_deleted"`
     21 	IsModerated   bool   `json:"is_moderated"`
     22 	Score         int    `json:"score"`
     23 	Flags         int    `json:"flags"`
     24 	ParentComment string `json:"parent_comment"`
     25 	Comment       string `json:"comment"`
     26 	CommentPlain  string `json:"comment_plain"`
     27 	URL           string `json:"url"`
     28 	Depth         int    `json:"depth"`
     29 	User          string `json:"commenting_user"`
     30 }
     31 
     32 type Post struct {
     33 	ShortID          string    `json:"short_id"`
     34 	ShortIDURL       string    `json:"short_id_url"`
     35 	CreatedAt        string    `json:"created_at"`
     36 	Headline         string    `json:"title"`
     37 	URL              string    `json:"url"`
     38 	Score            int       `json:"score"`
     39 	Flags            int       `json:"flags"`
     40 	CommentCount     int       `json:"comment_count"`
     41 	Paragraph        string    `json:"description"`
     42 	DescriptionPlain string    `json:"description_plain"`
     43 	CommentsURL      string    `json:"comments_url"`
     44 	User             string    `json:"submitter_user"`
     45 	UserIsAuthor     bool      `json:"user_is_author"`
     46 	Tags             []string  `json:"tags"`
     47 	Comments         []Comment `json:"comments"`
     48 }