Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Database *gorm.DB
Functions ¶
func AutoMigrateModels ¶
func AutoMigrateModels()
func FetchAllCompanies ¶
Fetches all companies from the database
func FetchAllStartups ¶
Fetches all startups from the database
func OpenDatabaseConnection ¶
func OpenDatabaseConnection()
Types ¶
type Company ¶
type Company struct { gorm.Model ID string `json:"id"` Name string `json:"name"` LogoURL string `json:"logo_url"` WebsiteURL string `json:"website_url"` SocialMedia SocialMedia `json:"social_media" gorm:"embedded"` Slogan string `json:"slogan"` Industry string `json:"industry"` CEO string `json:"ceo"` Since string `json:"since"` Headquater Office `json:"headquarter" gorm:"embedded"` }
func FetchCompany ¶
Fetches a company from the database
type SocialMedia ¶
type Startup ¶
type Startup struct { gorm.Model Name string `json:"name" bson:"name"` CEO string `json:"ceo" bson:"ceo"` ValueProposition string `json:"value_proposition" bson:"value_proposition"` Industry string `json:"industry" bson:"industry"` Founder Founder `json:"founder" bson:"founder" gorm:"embedded"` }
func FetchStartup ¶
Fetches a startup from the database
Click to show internal directories.
Click to hide internal directories.