Documentation ¶
Overview ¶
Package search implements search interface.
Index ¶
- type Options
- type Record
- func (record *Record) Address() string
- func (record *Record) CloseAt() string
- func (record *Record) Company() string
- func (record *Record) Distance() float64
- func (record *Record) FoodItems() []string
- func (record *Record) GoogleMapLink() string
- func (record *Record) Latitude() float64
- func (record *Record) Longitude() float64
- func (record *Record) OpenAt() string
- func (record *Record) Status() Status
- func (record *Record) StatusText() string
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { DB *sql.DB Latitude float64 Longitude float64 Radius float64 IgnoreExpired bool Limit int OrderBy string }
Options represents the options which can be set when calling search method.
type Record ¶
type Record struct {
// contains filtered or unexported fields
}
Record represents a search result record.
func (*Record) GoogleMapLink ¶
GoogleMapLink returns the Google Map link for the record.
func (*Record) StatusText ¶
StatusText returns the location status as text.
Click to show internal directories.
Click to hide internal directories.