Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ORM ¶
type ORM struct {
// contains filtered or unexported fields
}
ORM struct encapsulates the metadata and methods for a table.
func (*ORM) GetByPrimaryKey ¶
GetByPrimaryKey fetches a row by its primary key.
type Service ¶
type Service struct { TableName string `karma_table:"services"` ServiceId string `json:"service_id" karma:"primary;unique"` Type string `json:"type"` //"local", "online", "offline" Name string `json:"name"` Icon string `json:"icon"` Banner string `json:"banner"` Category string `json:"category"` // "food", "clothing", "electronics", "services", "entertainment", "education", "health", "beauty", "travel", "venues OfferedBy string `json:"offered_by"` // "global", "service_provider_id" Timestamp time.Time `json:"timestamp"` }
Click to show internal directories.
Click to hide internal directories.