Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var FeedTypes = []string{
"FEATURED",
"PERSONALIZED",
"FOLLOWING",
"RECENT",
"RELEVANT",
"BOOKMARKS",
"READING_HISTORY",
}
Functions ¶
This section is empty.
Types ¶
type Feed ¶
type Like ¶
type Like struct {
Data struct {
Like struct {
Post struct {
Id string `json:"id"`
} `json:"post"`
} `json:"likePost"`
} `json:"data"`
Errors []utils.Error `json:"errors"`
}
func LikeResponse ¶
type Me ¶
type Me struct {
Data struct {
Me struct {
ID string `json:"id"`
Username string `json:"username"`
Name string `json:"name"`
FollowersCount int `json:"followersCount"`
FollowingsCount int `json:"followingsCount"`
NewPost struct {
Nodes []struct {
Title string `json:"title"`
URL string `json:"url"`
} `json:"nodes"`
} `json:"newPost"`
OldPost struct {
Nodes []struct {
Title string `json:"title"`
URL string `json:"url"`
} `json:"nodes"`
} `json:"oldPost"`
Publications struct {
Edges []struct {
Node struct {
ID string `json:"id"`
Title string `json:"title"`
} `json:"node"`
} `json:"edges"`
} `json:"publications"`
} `json:"me"`
} `json:"data"`
Errors []utils.Error `json:"errors"`
}
func MeResponse ¶
func MeResponse() Me
type Post ¶
type Post struct {
Data struct {
Post utils.Post `json:"post"`
} `json:"data"`
Errors []utils.Error `json:"errors"`
}
func PostResponse ¶
type Publish ¶
type Publish struct {
Data struct {
PublishPost struct {
Post struct {
Id string `json:"id"`
} `json:"post"`
} `json:"publishPost"`
} `json:"data"`
Errors []utils.Error `json:"errors"`
}
func PublishResponse ¶
Click to show internal directories.
Click to hide internal directories.