Documentation ¶
Index ¶
- func Delete(db *database.DB, id int64) error
- func GetCount(db *database.DB) (int, error)
- func NewForm(raw FormRaw, problems []*models.Problem, laws []*models.Law, db *database.DB) (*Form, *FormError)
- type Age
- type Entry
- func Add(db *database.DB, cfg *config.Config, data *Form, providerId int64, ...) (*Entry, error)
- func CreateEntry(entry EntryRow, laws []*models.Law, problems []*models.Problem) *Entry
- func GetById(entryId int64, db *database.DB) (*Entry, error)
- func GetByUser(userId int64, db *database.DB) ([]*Entry, error)
- func SearchEntries(data *models.SearchFilterData, professional bool, db *database.DB, ...) ([]*Entry, *http.Cookie, error)
- func Update(db *database.DB, cfg *config.Config, id int64, data *Form, providerId int64, ...) (*Entry, error)
- type EntryRow
- type Form
- type FormError
- type FormRaw
- type Gender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Entry ¶
type Entry struct { ID int64 Title string Description string ProviderId int64 UserId int64 Url sql.NullString SocialForm string Contact sql.NullString Locations sql.NullString Draft bool Ags string Plzs sql.NullString Age ProfOnly bool Requirements sql.NullString Gender Created time.Time LastUpdate time.Time Problems []*models.Problem Laws []*models.Law }
func CreateEntry ¶
func SearchEntries ¶
func (*Entry) PrintGender ¶
type EntryRow ¶
type EntryRow struct { ID int64 `db:"entry_id"` Title string `db:"title"` Description string `db:"description"` ProviderId int64 `db:"provider_id"` UserId int64 `db:"user_id"` Url sql.NullString `db:"url"` SocialForm string `db:"social_form"` Contact sql.NullString `db:"contact"` Locations sql.NullString `db:"locations"` Draft bool `db:"draft"` Ags string `db:"ags"` Plzs sql.NullString `db:"plzs"` Age ProfOnly bool `db:"profonly"` Requirements sql.NullString `db:"requirements"` Gender Created time.Time `db:"created"` LastUpdate time.Time `db:"last_update"` }
type Form ¶
type Form struct { Title string Description string Url sql.NullString Locations sql.NullString Contact sql.NullString Ags string Plzs sql.NullString Problem []*models.Problem AgeMin uint64 AgeMax uint64 Gender map[string]bool Law []*models.Law SocialForm string Requirements sql.NullString ProfOnly bool Draft bool }
Click to show internal directories.
Click to hide internal directories.