gqlmod

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 License: MIT Imports: 3 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Post

type Post struct {
	ID        *store.ID  `json:"id"`
	Creation  *time.Time `json:"creation"`
	Author    *User      `json:"author"`
	Title     *string    `json:"title"`
	Contents  *string    `json:"contents"`
	Reactions []Reaction `json:"reactions"`
}

Post defines the Post type query object

type Reaction

type Reaction struct {
	ID        *store.ID        `json:"id"`
	Subject   interface{}      `json:"subject"`
	Creation  *time.Time       `json:"creation"`
	Author    *User            `json:"author"`
	Message   *string          `json:"message"`
	Emotion   *emotion.Emotion `json:"emotion"`
	Reactions []Reaction       `json:"reactions"`
}

Reaction defines the Reaction type query object

type Session

type Session struct {
	Key      *string    `json:"key"`
	Creation *time.Time `json:"creation"`
	User     *User      `json:"user"`
}

Session defines the Session type query object

type User

type User struct {
	ID                 *store.ID  `json:"id"`
	Creation           *time.Time `json:"creation"`
	Email              *string    `json:"email"`
	DisplayName        *string    `json:"displayName"`
	Posts              []Post     `json:"posts"`
	Sessions           []Session  `json:"sessions"`
	PublishedReactions []Reaction `json:"publishedReactions"`
}

User defines the User type query object

Jump to

Keyboard shortcuts

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