Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DiscoverRequest ¶
type DiscoverRequest struct { MinAge int `json:"minAge" validate:"omitempty,min=18,max=150"` MaxAge int `json:"maxAge" validate:"omitempty,min=18,max=150"` Genders []string `json:"genders" validate:"dive,oneof=male female other"` Lat float64 `json:"lat" validate:"required"` Long float64 `json:"long" validate:"required"` }
type DiscoverResponse ¶
type DiscoverResponse struct {
Results []*db.DiscoverProfile `json:"results"`
}
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
type Server ¶
type Server struct { Validate *validator.Validate Generator namegenerator.NameGenerator Store db.ProfileStore }
type ServerError ¶
type ServerError struct {
Error string `json:"error"`
}
type ServerHandler ¶
type ServerHandler func(http.ResponseWriter, *http.Request)
type SwipeRequest ¶
type SwipeResponse ¶
Click to show internal directories.
Click to hide internal directories.