Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillBestMatch ¶
func FillBestMatch(url url.Values, bestMatchRequest *BestMatchRequest)
Types ¶
type BestMatchRequest ¶
type BestMatchRequest struct { Material string `json:"material" validate:"required,alpha,lowercase"` Latitude string `json:"latitude" validate:"required,latitude"` Longitude string `json:"longitude" validate:"required,longitude"` Square string `json:"square" validate:"omitempty,number"` Phone string `json:"phone" validate:"omitempty,e164"` }
type ClientError ¶
type HttpError ¶
type HttpError struct { Cause error `json:"-"` Detail string `json:"detail"` Status int `json:"-"` }
func (HttpError) ResponseBody ¶
type Server ¶
type Server struct {
PartnerRepo partner.Repository
}
func (*Server) FindBestMatch ¶
func (s *Server) FindBestMatch(w http.ResponseWriter, r *http.Request, ps httprouter.Params) error
func (*Server) GetPartner ¶
func (s *Server) GetPartner(w http.ResponseWriter, r *http.Request, ps httprouter.Params) error
Click to show internal directories.
Click to hide internal directories.