Documentation ¶
Index ¶
- type AddNewCommentResponse
- type AuthResponse
- type Category
- type Comment
- type DeleteUserResponse
- type EditUserResponse
- type EditedUser
- type GetAllUsersResponse
- type GetCategoriesResponse
- type GetCategoryResponse
- type GetCommentsResponse
- type GetPostByIDResponse
- type GetPostsResponse
- type GetUserByIDResponse
- type NewCategory
- type NewComment
- type NewPost
- type Post
- type PostCategory
- type PostCategoryResponse
- type Token
- type UpVotes
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddNewCommentResponse ¶
type AuthResponse ¶
type DeleteUserResponse ¶
type EditUserResponse ¶
type EditedUser ¶
type EditedUser struct { Username string `json:"username"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Avatar string `json:"avatar"` Birthday int `json:"birthday"` Bio string `json:"bio"` Facebook string `json:"facebook"` Instagram string `json:"instagram"` Twitter string `json:"twitter"` }
type GetAllUsersResponse ¶
type GetCategoriesResponse ¶
type GetCategoryResponse ¶
type GetCommentsResponse ¶
type GetPostByIDResponse ¶
type GetPostsResponse ¶
type GetUserByIDResponse ¶
type NewCategory ¶
type NewComment ¶
type Post ¶
type Post struct { ID int `json:"id"` AuthorID int `json:"authorID"` ParentID int `json:"parentID"` Title string `json:"title"` Published bool `json:"published"` UpVote int `json:"upVote"` Content string `json:"content"` CreatedAt int `json:"createdAt"` UpdatedAt int `json:"updatedAt"` PublishedAt int `json:"publishedAt"` }
type PostCategory ¶
type PostCategoryResponse ¶
type User ¶
type User struct { ID int `json:"id"` Username string `json:"username"` Email string `json:"email"` FirstName string `json:"firstName"` LastName string `json:"lastName"` Avatar string `json:"avatar"` Birthday int `json:"birthday"` Bio string `json:"bio"` Facebook string `json:"facebook"` Instagram string `json:"instagram"` Twitter string `json:"twitter"` IsAdmin bool `json:"isAdmin"` CreatedAt int `json:"createdAt"` UpdatedAt int `json:"updatedAt"` }
Click to show internal directories.
Click to hide internal directories.