app

package
v0.0.0-...-dff41ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PostType *graphql.Object
View Source
var Posts = []*Post{}
View Source
var UserType *graphql.Object
View Source
var Users = []*User{}

Functions

This section is empty.

Types

type Post

type Post struct {
	ID         int     `json:"id"`
	Title      string  `json:"title"`
	Author     *User   `json:"author"`
	Liked      []*User `json:"liked"`
	LikedCount int     `json:"likedCount"`
	ViewCount  int     `json:"viewCount"`
}

type User

type User struct {
	ID          int     `json:"id"`
	Name        string  `json:"name"`
	Nickname    string  `json:"nickname"`
	AvatarURL   string  `json:"avatar_url"`
	Age         int     `json:"age"`
	IsSingle    bool    `json:"is_single"`
	BestFriends []*User `json:"best_friends"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL