Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func ConnectDatabase ¶
func ConnectDatabase()
Types ¶
type Mashstep ¶
type Mashstep struct { ID int `json:"id"` Time int `json:"time"` Temperature int `json:"temperature"` }
func GetMashstep ¶
func GetMashstep() Mashstep
func GetMashsteps ¶
func GetMashsteps() []Mashstep
type Recipe ¶
type Recipe struct { Id int Title string `json:"title"` BasicInfo string `json:"basic_info"` HopInfo string `json:"hop_info"` MaltInfo string `json:"malt_info"` MashInfo string `json:"mash_info"` FermentationInfo string `json:"fermentation_info"` IBU float64 `json:"ibu"` EBC float64 `json:"ebc"` OGTarget float64 `json:"og_target"` // specifies the targeted original gravity in %sacc CastWorth float64 `json:"cast_worth"` CookingTime float64 `json:"cooking_time"` SHA float64 `json:"sha"` }
func GetRecipes ¶
func GetRecipes() []Recipe
type RecipeMaltRelation ¶
type RecipeMaltRelation struct { ID int `json:"id"` RecipeID string `json:"title"` EBC string `json:"EBC"` Amount int `json:"amount"` }
func GetRecipeMaltRelation ¶
func GetRecipeMaltRelation() RecipeMaltRelation
func GetRecipeMaltRelations ¶
func GetRecipeMaltRelations() []RecipeMaltRelation
Click to show internal directories.
Click to hide internal directories.