model

package
v0.8.19 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 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"`
	Price int64  `json:"price"`
	Color string `json:"color"`
}

type Author

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

type Color

type Color interface {
	IsColor()
}

type Figure

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

type Fruit

type Fruit interface {
	IsFruit()
}

type Hotel

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

type PointList

type PointList struct {
	Points []*geom.T `json:"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"`
	Credentials  *models.Credentials `json:"credentials"`
	Name         string              `json:"name"`
	LastSignIn   *time.Time          `json:"lastSignIn"`
	RecentScores []float64           `json:"recentScores"`
	Likes        int64               `json:"likes"`
	Reputation   int64               `json:"reputation"`
	Rank         int64               `json:"rank"`
	Active       bool                `json:"active"`
}

Jump to

Keyboard shortcuts

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