Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *pop.Connection
DB is a connection to your database to be used throughout your application.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host struct { ID int `json:"id" db:"id"` Name string `json:"name" db:"name"` Description string `json:"description" db:"description"` Url string `json:"url" db:"url"` ApiVersion string `json:"api_version" db:"api_version"` AccessKey string `json:"access_key" db:"access_key"` SecretKey string `json:"secret_key" db:"secret_key"` CreatedAt time.Time `json:"created_at" db:"created_at"` UpdatedAt time.Time `json:"updated_at" db:"updated_at"` }
func (*Host) Validate ¶
Validate gets run everytime you call a "pop.Validate" method. This method is not required and may be deleted.
func (*Host) ValidateSave ¶
ValidateSave gets run everytime you call "pop.ValidateSave" method. This method is not required and may be deleted.
func (*Host) ValidateUpdate ¶
ValidateUpdate gets run everytime you call "pop.ValidateUpdate" method. This method is not required and may be deleted.
Click to show internal directories.
Click to hide internal directories.