Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinates ¶
type CreateLocationRequest ¶
type CreateLocationRequest struct { Name string `json:"name" validate:"required,min=5"` CreatedBy string Coordinates *Coordinates `json:"coordinates" validate:"required"` Address *Address `json:"address"` }
type FindLocationsRequest ¶
type GeoJSONPoint ¶
type Location ¶
type Location struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"id"` Name string `bson:"name" json:"name"` Address *Address `bson:"address" json:"address"` Geometry *GeoJSONPoint `bson:"geometry" json:"geometry,omitempty"` CreatedBy string `bson:"created_by" json:"-"` CreatedAt time.Time `bson:"created_at" json:"created_at"` UpdatedAt time.Time `bson:"updated_at" json:"updated_at"` }
func (*Location) MarshalBSON ¶
type LookupLocationRequest ¶
type LookupLocationRequest struct { *Coordinates MaxDistance int `json:"max_distance"` }
type PaginationRequest ¶
type ResponseMeta ¶
type ResponseMeta struct {
Count int64 `json:"count"`
}
type ResponseWithPagination ¶
type ResponseWithPagination struct { Response Meta ResponseMeta `json:"_meta"` }
Click to show internal directories.
Click to hide internal directories.