Documentation ¶
Index ¶
- type ConnectionRequest
- type DownvoteMenfessPostRequest
- type MenfessPostRequest
- type MenfessPostRoomsRequest
- type Node
- type PageInfo
- type Post
- func (r Post) Avatar() string
- func (r Post) Body() string
- func (r Post) Child(args ConnectionRequest) PostConnection
- func (r Post) DownvoteCount() int32
- func (r Post) Downvoted() bool
- func (r Post) ID() graphql.ID
- func (r Post) Name() string
- func (r Post) Parent() *Post
- func (r Post) ReplyCount() int32
- func (r Post) Repost() *Post
- func (r Post) Room() string
- func (r Post) Timestamp() int32
- func (r Post) UpvoteCount() int32
- func (r Post) Upvoted() bool
- type PostConnection
- type Resolver
- type Room
- type RoomConnection
- type UpvoteMenfessPostRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionRequest ¶
type DownvoteMenfessPostRequest ¶
type DownvoteMenfessPostRequest struct {
PostID graphql.ID
}
type MenfessPostRequest ¶
type MenfessPostRequest struct {
ID graphql.ID
}
type MenfessPostRoomsRequest ¶
type MenfessPostRoomsRequest struct { IDs []graphql.ID First *int32 After *graphql.ID }
type PageInfo ¶
type PageInfo []Node
func (PageInfo) StartCursor ¶
func (r PageInfo) StartCursor() *graphql.ID
type Post ¶
func (Post) Child ¶
func (r Post) Child(args ConnectionRequest) PostConnection
func (Post) DownvoteCount ¶
func (Post) ReplyCount ¶
func (Post) UpvoteCount ¶
type PostConnection ¶
type PostConnection struct {
// contains filtered or unexported fields
}
func (PostConnection) Edges ¶
func (r PostConnection) Edges() []Post
func (PostConnection) PageInfo ¶
func (r PostConnection) PageInfo() PageInfo
type Resolver ¶
type Resolver interface { MenfessPost(args MenfessPostRequest) *Post MenfessPostList(args ConnectionRequest) *PostConnection MenfessPostRooms(args MenfessPostRoomsRequest) *PostConnection UpvoteMenfessPost(args UpvoteMenfessPostRequest) *Post DownvoteMenfessPost(args DownvoteMenfessPostRequest) *Post // MenfessRoomList() RoomConnection MenfessAvatarList() []string }
type RoomConnection ¶
type RoomConnection struct {
// contains filtered or unexported fields
}
func (*RoomConnection) Edges ¶
func (r *RoomConnection) Edges() []*Room
func (*RoomConnection) PageInfo ¶
func (r *RoomConnection) PageInfo() PageInfo
type UpvoteMenfessPostRequest ¶
type UpvoteMenfessPostRequest struct {
PostID graphql.ID
}
Click to show internal directories.
Click to hide internal directories.