Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewQueryBuilder ¶
func NewQueryBuilder() *queryBuilder
Types ¶
type QueryStringBuilder ¶
type QueryStringBuilder interface {
Build(sbo *SmallBodyOptions) string
}
type SbCad ¶
type SbCad struct {
Des string `json:"destination"`
Orbit_id string `json:"orbitId"`
Jd string `json:"closeApproachJd"`
Cd string `json:"closeApproachCd"`
Dist string `json:"distance"`
Dist_max string `json:"distanceMax"`
Dist_min string `json:"distanceMin"`
V_rel string `json:"relativeVelocity"`
V_inf string `json:"inferredVelocity"`
T_sigma_f string `json:"threeSigma"`
Body string `json:"body"`
H string `json:"h"`
FullName string `json:"fullName"`
}
type SbCadDecoder ¶
type SbCadDecoder struct{}
func (*SbCadDecoder) Decode ¶
func (sd *SbCadDecoder) Decode(input interface{}, output interface{}) error
type SbCadFinder ¶
type SbCadFinder interface {
FindSbCadBy(sbo SmallBodyOptions) ([]SbCad, error)
}
type SbCadMapper ¶
type SbCadMapper struct {
Decoder
}
func NewSbCadMapper ¶
func NewSbCadMapper() *SbCadMapper
type SbCadResponse ¶
type SbCadService ¶
type SbCadService struct {
BaseUrl string
Getter
Mapper
QueryStringBuilder
}
func NewSbCadService ¶
func NewSbCadService() *SbCadService
func (*SbCadService) FindSbCadBy ¶
func (ss *SbCadService) FindSbCadBy(sbo SmallBodyOptions) ([]SbCad, error)
type SmallBodyOptions ¶
type SmallBodyOptions struct {
DateMin string `json:"dateMin"`
DateMax string `json:"dateMax"`
DistanceMin string `json:"distanceMin"`
DistanceMax string `json:"distanceMax"`
HMin string `json:"hMin"`
HMax string `json:"hMax"`
VelocityInfMax string `json:"velocityInfMax"`
VelocityInfMin string `json:"velocityInfMin"`
VelocityRelativeMax string `json:"velocityRelativeMax"`
VelocityRelativeMin string `json:"velocityRelativeMin"`
Class string `json:"class"`
Pha bool `json:"pha"`
Nea bool `json:"nea"`
Comet bool `json:"comet"`
NeaComet bool `json:"neaComet"`
Neo bool `json:"neo"`
Kind string `json:"kind"`
Spk string `json:"spk"`
Designation string `json:"designation"`
Body string `json:"body"`
Sort string `json:"sort"`
Limit string `json:"limit"`
FullName bool `json:"fullName"`
}
Click to show internal directories.
Click to hide internal directories.