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: 1.0.1 Produces: - application/json Consumes: - application/json
swagger:meta
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DecentrStats ¶ added in v0.0.14
DecentrStats ... swagger:model
type GetPostResponse ¶ added in v0.0.3
type GetPostResponse struct {
Post Post `json:"post"`
ProfileStats ProfileStats `json:"profileStats"`
Stats []StatsItem `json:"stats"`
}
GetPostResponse ... swagger:model
type ListPostsResponse ¶
type ListPostsResponse struct {
Posts []*Post `json:"posts"`
// ProfileStats contains profiles stats.
ProfileStats map[string]ProfileStats `json:"profileStats"`
// Posts' statistics dictionary where key is a full form ID (owner/uuid) and value is statistics
Stats map[string][]StatsItem `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:"previewImage"`
Text string `json:"text"`
LikesCount uint32 `json:"likesCount"`
DislikesCount uint32 `json:"dislikesCount"`
PDV float64 `json:"pdv"`
LikeWeight *community.LikeWeight `json:"likeWeight,omitempty"`
CreatedAt uint64 `json:"createdAt"`
}
Post ...
type ProfileStats ¶ added in v1.0.0
ProfileStats ...
Click to show internal directories.
Click to hide internal directories.