Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseAPIResponse ¶
type BaseAPIResponse struct {
Message string `json:"message"`
}
type BaseDBResponse ¶
type BaseSchema ¶
type BaseSchema interface { Map(io.ReadCloser) (BaseSchema, error) Validate() []error ToModel() (BaseModel, error) }
type Record ¶
type Record struct { ID int64 `mapstructure:"record_id" json:"id"` ReferenceID string `mapstructure:"record_reference_id" json:"referenceId"` Type RecordType `mapstructure:"record_type" json:"type"` Notes *string `mapstructure:"record_notes" json:"notes,omitempty"` Geopoint pgtype.Point `mapstructure:"record_geo_point" json:"-"` FloatGeopoint [2]float64 `mapstructure:"-" json:"geopoint"` Address string `mapstructure:"record_address" json:"address"` CreatedAt time.Time `mapstructure:"created_at" json:"createdAt"` }
type RecordSchema ¶
type RecordSchema struct { Type RecordType `json:"recordType"` Notes *string `json:"notes"` Geopoint [2]float64 `json:"geopoint" validate:"empty=false & eq=2"` Address string `json:"address"` }
type RecordType ¶
type RecordType string
const ( RT_POOP RecordType = "poop" RT_ANIMAL RecordType = "dead_animal" )
func (RecordType) IsValid ¶
func (rt RecordType) IsValid() bool
type SearchQuery ¶
func (SearchQuery) GetOffset ¶
func (sq SearchQuery) GetOffset() int
func (SearchQuery) ParseParams ¶
func (sq SearchQuery) ParseParams(query url.Values) (*SearchQuery, error)
ParseParams
Click to show internal directories.
Click to hide internal directories.