model

package
v0.8.24 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Apple

type Apple struct {
	Id    string `json:"id" dql:"uid"`
	Price int64  `json:"price" dql:"Apple.price"`
	Color string `json:"color" dql:"Apple.color"`
}

type Author

type Author struct {
	Id            string    `json:"id" dql:"uid"`
	Name          string    `json:"name" dql:"Author.name"`
	Posts         []*Post   `json:"posts" dql:"Author.posts"`
	RecentlyLiked []*Post   `json:"recentlyLiked" dql:"Author.recentlyLiked"`
	Friends       []*Author `json:"friends" dql:"Author.friends"`
}

type Color

type Color interface {
	IsColor()
}

type CyclicType added in v0.8.22

type CyclicType struct {
	Id          string       `json:"id" dql:"uid"`
	Name        string       `json:"name" dql:"CyclicType.name"`
	InverseType *InverseType `json:"inverseType" dql:"CyclicType.inverseType"`
}

type Figure

type Figure struct {
	Id    string `json:"id" dql:"uid"`
	Shape string `json:"shape" dql:"Figure.shape"`
	Color string `json:"color" dql:"Figure.color"`
	Size  int64  `json:"size" dql:"Figure.size"`
}

type Fruit

type Fruit interface {
	IsFruit()
}

type Hotel

type Hotel struct {
	Id       string  `json:"id" dql:"uid"`
	Name     string  `json:"name" dql:"Hotel.name"`
	Location *geom.T `json:"location" dql:"Hotel.location"`
	Area     *geom.T `json:"area" dql:"Hotel.area"`
}

type InverseType added in v0.8.22

type InverseType struct {
	Id         string      `json:"id" dql:"uid"`
	Name       string      `json:"name" dql:"InverseType.name"`
	CyclicType *CyclicType `json:"cyclicType" dql:"InverseType.cyclicType"`
}

type PointList

type PointList struct {
	Points []*geom.T `json:"points" dql:"PointList.points"`
}

type Post

type Post interface {
	IsPost()
}

type Shape

type Shape interface {
	IsShape()
}

type Tag

type Tag string
const (
	TagGraphQL  Tag = "GraphQL"
	TagDatabase Tag = "Database"
	TagQuestion Tag = "Question"
)

func (Tag) IsValid

func (e Tag) IsValid() bool

func (Tag) MarshalGQL

func (e Tag) MarshalGQL(w io.Writer)

func (Tag) String

func (e Tag) String() string

func (*Tag) UnmarshalGQL

func (e *Tag) UnmarshalGQL(v interface{}) error

type User

type User struct {
	UserID       string              `json:"userID" dql:"User.userID"`
	Credentials  *models.Credentials `json:"credentials" dql:"User.credentials"`
	Name         string              `json:"name" dql:"User.name"`
	LastSignIn   *time.Time          `json:"lastSignIn" dql:"User.lastSignIn"`
	RecentScores []float64           `json:"recentScores" dql:"User.recentScores"`
	Likes        int64               `json:"likes" dql:"User.likes"`
	Reputation   int64               `json:"reputation" dql:"User.reputation"`
	Rank         int64               `json:"rank" dql:"User.rank"`
	Active       bool                `json:"active" dql:"User.active"`
}

Jump to

Keyboard shortcuts

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