Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Answer ¶
type Answer struct {
Key *datastore.Key `json:"id" datastore:"-"`
Answer string `json:"answer" datastore:",noindex"`
CTime time.Time `json:"created"`
User UserCard `json:"user" datastore:",noindex"`
Score int `json:"score"`
}
func GetAnswers ¶
func (Answer) Card ¶
func (a Answer) Card() AnswerCard
type AnswerCard ¶
type Question ¶
type Question struct {
Key *datastore.Key `json:"id" datastore:"-"`
CTime time.Time `json:"created"`
Question string `json:"question" datastore:",noindex"`
User UserCard `json:"user" datastore:",noindex"`
AnswersCount int `json:"answers_count"`
}
func (Question) Card ¶
func (q Question) Card() QuestionCard
type QuestionCard ¶
type User ¶
type User struct {
Key *datastore.Key `json:"id" datastore:"-"`
UserID string `json:"-" datastore:",noindex"`
DisplayName string `json:"display_name" datastore:",noindex"`
AvatarURL string `json:"avatar_url" datastore:",noindex"`
Score int `json:"score" datastore:",noindex"`
}
func UserFromAEUser ¶
UserFromAEUser gets or creates a User from the currently logged in user.
type Vote ¶
type Vote struct {
Key *datastore.Key `json:"id" datastore:"-"`
MTime time.Time `json:"last_modified" datastore:",noindex"`
Question QuestionCard `json:"question" datastore:",noindex"`
Answer AnswerCard `json:"answer" datastore:",noindex"`
User UserCard `json:"user" datastore:",noindex"`
Score int `json:"score" datastore:",noindex"`
}
Click to show internal directories.
Click to hide internal directories.