Documentation
¶
Overview ¶
Package server Theseus
The Theseus is an off-chain service which provides access to community entities (posts, likes, follows)
Schemes: https BasePath: /v1 Version: 0.0.1 Produces: - application/json Consumes: - application/json
swagger:meta
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ListPostsResponse ¶
type ListPostsResponse struct {
Posts []Post `json:"posts"`
// Profiles dictionary where key is an address and value is a profile.
Profiles map[string]Profile `json:"profiles"`
// Posts' statistics dictionary where key is a full form ID (owner/uuid) and value is statistics
Stats map[string]Stats `json:"stats"`
}
ListPostsResponse ... swagger:model
type Post ¶
type Post struct {
UUID string `json:"uuid"`
Owner string `json:"owner"`
Title string `json:"title"`
Category community.Category `json:"category"`
PreviewImage string `json:"preview_image"`
Text string `json:"text"`
Likes uint32 `json:"likes"`
Dislikes uint32 `json:"dislikes"`
PDV int64 `json:"pdv"`
CreatedAt uint64 `json:"created_at"`
}
Post ...
Click to show internal directories.
Click to hide internal directories.