newhorizons

package
v0.0.0-...-c1c3c3c Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Art

type Art struct {
	Name     string
	Type     []ArtType
	Buy      int
	Source   string
	Tag      string
	Category string
}

Art represents an art object graphql can parse and display

type ArtEntry

type ArtEntry struct {
	Name        string
	Image       string
	Genuine     string
	Category    string
	Buy         int
	Sell        int
	Source      string
	HHAConcept1 string `gorm:"column:hhaconcept1"`
	HHAConcept2 string `gorm:"column:hhaconcept2"`
	Tag         string
}

ArtEntry represents an art entry in the database

func (ArtEntry) ToGraphQL

func (ae ArtEntry) ToGraphQL(t []ArtType) *Art

ToGraphQL (ArtEntry) turns a art entry from database to a Art object graphql is able to parse

type ArtType

type ArtType struct {
	Image   string
	Sell    int
	Genuine string
	Concept []string
}

ArtType represents an artwork in terms of genuine vs fake ones

type Bug

type Bug struct {
	Name         string
	Image        string
	Sell         int
	Location     string
	Weather      string
	TotalCatches int
	MonthTime    []Month
	Color        []string
}

Bug represents a bug object graphql can parse and display

type BugEntry

type BugEntry struct {
	Name         string
	Image        string
	Sell         int
	Location     string
	Weather      string
	TotalCatches int    `gorm:"column:totalcatches"`
	NHJan        string `gorm:"column:nhjan"`
	NHFeb        string `gorm:"column:nhfeb"`
	NHMar        string `gorm:"column:nhmar"`
	NHApr        string `gorm:"column:nhapr"`
	NHMay        string `gorm:"column:nhmay"`
	NHJun        string `gorm:"column:nhjun"`
	NHJul        string `gorm:"column:nhjul"`
	NHAug        string `gorm:"column:nhaug"`
	NHSep        string `gorm:"column:nhsep"`
	NHOct        string `gorm:"column:nhoct"`
	NHNov        string `gorm:"column:nhnov"`
	NHDec        string `gorm:"column:nhdec"`
	SHJan        string `gorm:"column:shjan"`
	SHFeb        string `gorm:"column:shfeb"`
	SHMar        string `gorm:"column:shmar"`
	SHApr        string `gorm:"column:shapr"`
	SHMay        string `gorm:"column:shmay"`
	SHJun        string `gorm:"column:shjun"`
	SHJul        string `gorm:"column:shjul"`
	SHAug        string `gorm:"column:shaug"`
	SHSep        string `gorm:"column:shsep"`
	SHOct        string `gorm:"column:shoct"`
	SHNov        string `gorm:"column:shnov"`
	SHDec        string `gorm:"column:shdec"`
	Color1       string `gorm:"column:color1"`
	Color2       string `gorm:"column:color2"`
}

BugEntry represents a bug object in the database

func (BugEntry) ToGraphQL

func (be BugEntry) ToGraphQL(color []string, month []Month) *Bug

ToGraphQL (BugEntry) converts a BugEntry object into a Bug object

type Clothes

type Clothes struct {
	Name        string
	Variants    []ClothesVariant
	DIY         string
	Buy         int
	Sell        int
	Source      string
	SourceNotes string
	Style       string
	Themes      []string
	Catalog     string
}

Clothes represents a Clothes item that will be displayed via graphql

type ClothesEntry

type ClothesEntry struct {
	Name        string
	Image       string
	Variation   string
	DIY         string
	Buy         int
	Sell        int
	Color1      string `gorm:"column:color1"`
	Color2      string `gorm:"column:color2"`
	Source      string
	SourceNotes string `gorm:"column:sourcenotes"`
	Style       string
	Themes      string `gorm:"column:labelthemes"`
	Catalog     string
}

ClothesEntry represents data we get from SQL database

func (ClothesEntry) ToGraphQL

func (c ClothesEntry) ToGraphQL(v []ClothesVariant, t []string) *Clothes

ToGraphQL (ClothesEntry) turns a clothes entry from database to a Clothes object graphql is able to parse

type ClothesVariant

type ClothesVariant struct {
	Image     string
	Variation string
	Color     []string
}

ClothesVariant represents variation data for clothes entries

type ConstructionEntry

type ConstructionEntry struct {
	Name     string
	Image    string
	Buy      int
	Category string
	Source   string
}

ConstructionEntry represents a construction object in the database

type Curtains

type Curtains struct {
	CurtainType  string
	CurtainColor string
}

Curtains represents curtain info

type FenceEntry

type FenceEntry struct {
	Name        string
	Image       string
	DIY         string
	Buy         int
	Sell        int
	Source      string
	SourceNotes string `gorm:"column:sourcenotes"`
}

FenceEntry represents a fence object from the database

type Fish

type Fish struct {
	Name         string
	Image        string
	Sell         int
	Location     string
	Shadow       string
	TotalCatches int
	CatchUp      string
	MonthTime    []Month
	Color        []string
}

Fish represents a fish object graphql can parse and display

type FishEntry

type FishEntry struct {
	Name         string
	Image        string
	Sell         int
	Location     string
	Shadow       string
	TotalCatches int    `gorm:"column:totalcatches"`
	CatchUp      string `gorm:"column:catchup"`
	NHJan        string `gorm:"column:nhjan"`
	NHFeb        string `gorm:"column:nhfeb"`
	NHMar        string `gorm:"column:nhmar"`
	NHApr        string `gorm:"column:nhapr"`
	NHMay        string `gorm:"column:nhmay"`
	NHJun        string `gorm:"column:nhjun"`
	NHJul        string `gorm:"column:nhjul"`
	NHAug        string `gorm:"column:nhaug"`
	NHSep        string `gorm:"column:nhsep"`
	NHOct        string `gorm:"column:nhoct"`
	NHNov        string `gorm:"column:nhnov"`
	NHDec        string `gorm:"column:nhdec"`
	SHJan        string `gorm:"column:shjan"`
	SHFeb        string `gorm:"column:shfeb"`
	SHMar        string `gorm:"column:shmar"`
	SHApr        string `gorm:"column:shapr"`
	SHMay        string `gorm:"column:shmay"`
	SHJun        string `gorm:"column:shjun"`
	SHJul        string `gorm:"column:shjul"`
	SHAug        string `gorm:"column:shaug"`
	SHSep        string `gorm:"column:shsep"`
	SHOct        string `gorm:"column:shoct"`
	SHNov        string `gorm:"column:shnov"`
	SHDec        string `gorm:"column:shdec"`
	Color1       string `gorm:"column:color1"`
	Color2       string `gorm:"column:color2"`
}

FishEntry represents a fish object in the database

func (FishEntry) ToGraphQL

func (fe FishEntry) ToGraphQL(color []string, month []Month) *Fish

ToGraphQL (FishEntry) converts a FishEntry object into a Fish object

type Floor

type Floor struct {
	Name        string
	Image       string
	VFX         string
	DIY         string
	Buy         int
	Sell        int
	Color       []string
	Source      string
	SourceNotes string
	Concepts    []string
	Tag         string
	Catalog     string
}

Floor represents a floor entry graphql is able to parse and display

type FloorEntry

type FloorEntry struct {
	Name        string
	Image       string
	VFX         string
	DIY         string
	Buy         int
	Sell        int
	Color1      string `gorm:"column:color1"`
	Color2      string `gorm:"column:color2"`
	Source      string
	SourceNotes string `gorm:"column:sourcenotes"`
	HHAConcept1 string `gorm:"column:hhaconcept1"`
	HHAConcept2 string `gorm:"column:hhaconcept2"`
	Tag         string `gorm:"column:tag"`
	Catalog     string
}

FloorEntry represents a floor entry from the database

func (FloorEntry) ToGraphQL

func (f FloorEntry) ToGraphQL(color, concepts []string) *Floor

ToGraphQL (FloorEntry) turns a clothes entry from database to a Floor object graphql is able to parse

type Fossil

type Fossil struct {
	Name     string
	Image    string
	Buy      int
	Sell     int
	Color    []string
	Source   string
	Interact string
	Catalog  string
}

Fossil represents a fossil entry graphql can parse and display

type FossilEntry

type FossilEntry struct {
	Name     string
	Image    string
	Buy      int
	Sell     int
	Color1   string
	Color2   string
	Source   string
	Interact string
	Catalog  string
}

FossilEntry represents a fossil entry in the database

func (FossilEntry) ToGraphQL

func (fe FossilEntry) ToGraphQL(color []string) *Fossil

ToGraphQL (FossilEntry) turns a FossilEntry into a Fossil object

type Item

type Item struct {
	Name             string
	Variants         []Variant
	BodyTitle        string
	PatternTitle     string
	BodyCustomize    string
	KitCost          int
	Sell             int
	Interact         string
	Source           string
	Tag              string
	HHAConcepts      []string
	HHASeries        string
	HHASet           string
	DIY              string
	PatternCustomize string
	Buy              int
}

Item represents an item entry that will be displayed via graphql

type ItemEntry

type ItemEntry struct {
	Name             string `gorm:"not null"`
	Image            string `gorm:"not null"`
	Variation        string `gorm:"not null"`
	BodyTitle        string `gorm:"column:bodytitle"`
	Pattern          string
	PatternTitle     string `gorm:"column:patterntitle"`
	DIY              string
	BodyCustomize    string `gorm:"column:bodycustomize"`
	PatternCustomize string `gorm:"column:patterncustomize"`
	KitCost          int    `gorm:"column:kitcost"`
	Buy              int
	Sell             int
	Color1           string `gorm:"column:color1"`
	Color2           string `gorm:"column:color2"`
	Source           string
	SourceNotes      string `gorm:"column:sourcenotes"`
	HHAConcept1      string `gorm:"column:hhaconcept1"`
	HHAConcept2      string `gorm:"column:hhaconcept2"`
	HHASeries        string `gorm:"column:hhaseries"`
	HHASet           string `gorm:"column:hhaset"`
	Interact         string
	Tag              string
	Catalog          string
}

ItemEntry represents an item from the housewares table in postgres

func (ItemEntry) ToGraphQL

func (ie ItemEntry) ToGraphQL(v []Variant, h []string) *Item

ToGraphQL (ItemEntry) formats the entry into an object that graphql will be able to parse

type Month

type Month struct {
	// Month - separated to NH or SH and month name
	Month string

	// Associated time with month value
	Time string
}

Month represents a specific month and its associated time

type Music

type Music struct {
	Name        string
	Image       string
	Buy         int
	Sell        int
	Color       []string
	Source      string
	SourceNotes string
}

Music represents a music object that graphql is able to parse and display

type MusicEntry

type MusicEntry struct {
	Name        string
	Image       string
	Buy         int
	Sell        int
	Color1      string `gorm:"column:color1"`
	Color2      string `gorm:"column:color2"`
	Source      string
	SourceNotes string `gorm:"column:sourcenotes"`
}

MusicEntry represents a music object from the database

func (MusicEntry) ToGraphQL

func (me MusicEntry) ToGraphQL(c []string) *Music

ToGraphQL (MusicEntry) turns a MusicEntry object into a Music Object

type NookMiles

type NookMiles struct {
	Name      string
	Image     string
	NookMiles int `gorm:"column:nookmiles"`
	Category  string
}

NookMiles represents a NookMile object in both the database and as a graphql entry

type Other

type Other struct {
	Name        string
	Image       string
	DIY         string
	Buy         int
	Sell        int
	Source      string
	SourceNotes string `gorm:"column:sourcenotes"`
	Tag         string
}

Other represents an other object in the database and as an object graphql can understand

type Photo

type Photo struct {
	Name         string
	Variants     []Variant
	BodyTitle    string
	PatternTitle string
	DIY          string
	Customize    string
	KitCost      int
	Buy          int
	Sell         int
	Source       string
}

Photo represents a photo entry graphql can parse and display

type PhotoEntry

type PhotoEntry struct {
	Name         string
	Image        string
	Variation    string
	BodyTitle    string `gorm:"column:bodytitle"`
	Pattern      string
	PatternTitle string `gorm:"column:patterntitle"`
	DIY          string
	Customize    string
	KitCost      int `gorm:"column:kitcost"`
	Buy          int
	Sell         int
	Color1       string `gorm:"column:color1"`
	Color2       string `gorm:"column:color2"`
	Source       string
}

PhotoEntry represents a photo entry in the postgres database

func (PhotoEntry) ToGraphQL

func (pe PhotoEntry) ToGraphQL(v []Variant) *Photo

ToGraphQL (PhotoEntry) turns a clothes entry from database to a Clothes object graphql is able to parse

type Poster

type Poster struct {
	Name   string
	Image  string
	Buy    int
	Sell   int
	Color  []string
	Source string
}

Poster represents a poster that graphql can parse and display

type PosterEntry

type PosterEntry struct {
	Name   string
	Image  string
	Buy    int
	Sell   int
	Color1 string `gorm:"column:color1"`
	Color2 string `gorm:"column:color2"`
	Source string
}

PosterEntry represents a poster in the database

func (PosterEntry) ToGraphQL

func (pe PosterEntry) ToGraphQL(c []string) *Poster

ToGraphQL (PosterEntry) turns a poster entry from database to a Poster object graphql is able to parse

type ReactionEntry

type ReactionEntry struct {
	Name   string
	Image  string
	Source string
}

ReactionEntry represents a reaction object in the database

type Rug

type Rug struct {
	Name        string
	Image       string
	DIY         string
	Buy         int
	Sell        int
	Color       []string
	Source      string
	SourceNotes string
	Concept     []string
	HHASeries   string
	Tag         string
	Catalog     string
}

Rug represents a rug object that graphql is able to parse and display

type RugEntry

type RugEntry struct {
	Name        string
	Image       string
	DIY         string
	Buy         int
	Sell        int
	Color1      string `gorm:"column:color1"`
	Color2      string `gorm:"column:color2"`
	Source      string
	SourceNotes string `gorm:"column:sourcenotes"`
	HHAConcept1 string `gorm:"column:hhaconcept1"`
	HHAConcept2 string `gorm:"column:hhaconcept2"`
	HHASeries   string `gorm:"column:hhaseries"`
	Tag         string
	Catalog     string
}

RugEntry represents a rug entry in the postgres database

func (RugEntry) ToGraphQL

func (r RugEntry) ToGraphQL(color, concept []string) *Rug

ToGraphQL (RugEntry) formats the entry into an object that graphql will be able to parse

type Tool

type Tool struct {
	Name        string
	Variant     []ToolVariant
	BodyTitle   string
	DIY         string
	Customize   string
	KitCost     int
	Uses        int
	Buy         int
	Sell        int
	Set         string
	Source      []string
	SourceNotes string
}

Tool represents a tool entry graphql is able to parse and display

type ToolEntry

type ToolEntry struct {
	Name        string
	Image       string
	Variation   string
	BodyTitle   string `gorm:"column:bodytitle"`
	DIY         string
	Customize   string
	KitCost     int `gorm:"column:kitcost"`
	Uses        int
	Buy         int
	Sell        int
	Set         string
	Source      string
	SourceNotes string `gorm:"column:sourcenotes"`
}

ToolEntry represents a tool in the database

func (ToolEntry) ToGraphQL

func (te ToolEntry) ToGraphQL(t []ToolVariant, s []string) *Tool

ToGraphQL (ToolEntry) converts a tool entry into a tool object

type ToolVariant

type ToolVariant struct {
	Image     string
	Variation string
}

ToolVariant represents a tool's variation parameters

type Umbrella

type Umbrella struct {
	Name        string
	Image       string
	DIY         string
	Buy         int
	Sell        int
	Color       []string
	Source      string
	SourceNotes string
	Catalog     string
}

Umbrella represents an umbrella object graphql can parse and display

type UmbrellaEntry

type UmbrellaEntry struct {
	Name        string
	Image       string
	DIY         string
	Buy         int
	Sell        int
	Color1      string `gorm:"column:color1"`
	Color2      string `gorm:"column:color2"`
	Source      string
	SourceNotes string `gorm:"column:sourcenotes"`
	Catalog     string
}

UmbrellaEntry represents an umbrella in the database

func (UmbrellaEntry) ToGraphQL

func (ue UmbrellaEntry) ToGraphQL(c []string) *Umbrella

ToGraphQL (UmbrellaEntry) turns an umbrella entry from database to an Umbrella object graphql is able to parse

type VFXT

type VFXT struct {
	VFX     string
	VFXType string
}

VFXT represents VFX info

type Variant

type Variant struct {
	Image     string
	Pattern   string
	Colors    []string
	Variation string
}

Variant represents variation differences according to each item entry

type Villager

type Villager struct {
	Name        string
	Image       string
	HouseImage  string
	Hobby       string
	Species     string
	Gender      string
	Personality string
	Birthday    string
	Catchphrase string
	Style       []string
	Color       []string
}

Villager represents a villager entry graphql is able to parse and display

type VillagerEntry

type VillagerEntry struct {
	Name        string
	Image       string
	HouseImage  string `gorm:"column:houseimage"`
	Hobby       string
	Species     string
	Gender      string
	Personality string
	Birthday    string
	Catchphrase string
	Style1      string `gorm:"column:style1"`
	Style2      string `gorm:"column:style2"`
	Color1      string `gorm:"column:color1"`
	Color2      string `gorm:"column:color2"`
}

VillagerEntry represents a villager in the database

func (VillagerEntry) ToGraphQL

func (ve VillagerEntry) ToGraphQL(s, c []string) *Villager

ToGraphQL (VillagerEntry) turns a villager entry from database to a Villager object graphql is able to parse

type Wallpaper

type Wallpaper struct {
	Name        string
	Image       string
	VFXInfo     VFXT
	DIY         string
	Sell        int
	Buy         int
	Source      string
	SourceNotes string
	Catalog     string
	WindowInfo  Windows
	CurtainInfo Curtains
	CeilingType string
	Color       []string
	Concepts    []string
	HHASeries   string
	Tag         string
}

Wallpaper represents a Wallpaper object graphql can parse

type WallpaperEntry

type WallpaperEntry struct {
	Name         string
	Image        string
	VFX          string `gorm:"column:vfx"`
	VFXType      string `gorm:"column:vfxtype"`
	DIY          string `gorm:"column:diy"`
	Buy          int
	Sell         int
	Source       string
	SourceNotes  string `gorm:"column:sourcenotes"`
	Catalog      string
	WindowType   string `gorm:"column:windowtype"`
	WindowColor  string `gorm:"column:windowcolor"`
	PaneType     string `gorm:"column:panetype"`
	CurtainType  string `gorm:"column:curtaintype"`
	CurtainColor string `gorm:"column:curtaincolor"`
	CeilingType  string `gorm:"column:ceilingtype"`
	Color1       string `gorm:"column:color1"`
	Color2       string `gorm:"column:color2"`
	HHAConcept1  string `gorm:"column:hhaconcept1"`
	HHAConcept2  string `gorm:"column:hhaconcept2"`
	HHASeries    string `gorm:"column:hhaseries"`
	Tag          string
}

WallpaperEntry represents a wallpaper object in the postgres database

func (WallpaperEntry) ToGraphQL

func (w WallpaperEntry) ToGraphQL(v VFXT, win Windows, c Curtains, colors, concepts []string) *Wallpaper

ToGraphQL (WallpaperEntry) turns a clothes entry from database to a Clothes object graphql is able to parse

type Windows

type Windows struct {
	WindowType  string
	WindowColor string
}

Windows represent windows info

Jump to

Keyboard shortcuts

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