Documentation ¶
Index ¶
- type ActiveCategories
- type ActiveSats
- type Category
- type Sat
- type Service
- func (s *Service) Categories(ctx context.Context, empty *empty.Empty) (*satsvc.CategoriesResponse, error)
- func (s *Service) GenLocations(ctx context.Context, req *satsvc.GenLocationsRequest) (*satsvc.GenLocationsResponse, error)
- func (s *Service) GenPasses(ctx context.Context, req *satsvc.GenPassesRequest) (*satsvc.Passes, error)
- func (s *Service) SatLocationFromObs(req *satsvc.SatLocationFromObsRequest, ...) error
- func (s *Service) SatsInfos(ctx context.Context, req *satsvc.SatsRequest) (*satsvc.SatsInfosResponse, error)
- func (s *Service) SatsLocations(req *satsvc.SatsRequest, stream satsvc.Prediction_SatsLocationsServer) error
- func (s *Service) UpdateCategories() error
- func (s *Service) UpdateTLEs() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActiveCategories ¶
ActiveCategories for the sataas.
func NewActiveCategories ¶
func NewActiveCategories() *ActiveCategories
NewActiveCategories create a new list of categories.
type ActiveSats ¶
ActiveSats for the sataas.
func NewActiveSats ¶
func NewActiveSats() *ActiveSats
NewActiveSats create a new list of active sats.
func (*ActiveSats) Get ¶
func (as *ActiveSats) Get(norad int32) (*Sat, bool)
Get one sat, read thread safe.
func (*ActiveSats) Set ¶
func (as *ActiveSats) Set(norad int32, sat *Sat)
Set one sat, read thread safe.
type Sat ¶
Sat is holding live propagation obj to compute predictions.
func NewSatFromTLE ¶
NewSatFromTLE returns a Sat created with a name and TLEs.
type Service ¶
func New ¶
func New(ctx context.Context, logger log.Logger, health *health.Server, tleURL, categoryURL string) *Service
New returns a new Sataas service manager.
func (*Service) Categories ¶
func (s *Service) Categories(ctx context.Context, empty *empty.Empty) (*satsvc.CategoriesResponse, error)
Categories gRPC exposed to get category list.
func (*Service) GenLocations ¶
func (s *Service) GenLocations( ctx context.Context, req *satsvc.GenLocationsRequest, ) (*satsvc.GenLocationsResponse, error)
GenLocations gRPC exposed to generate positions.
func (*Service) GenPasses ¶
func (s *Service) GenPasses(ctx context.Context, req *satsvc.GenPassesRequest) (*satsvc.Passes, error)
GenPasses gRPC exposed to generate satellites passes.
func (*Service) SatLocationFromObs ¶
func (s *Service) SatLocationFromObs(req *satsvc.SatLocationFromObsRequest, stream satsvc.Prediction_SatLocationFromObsServer) error
SatLocationFromObs gRPC exposed stream Live Sat observation.
func (*Service) SatsInfos ¶
func (s *Service) SatsInfos(ctx context.Context, req *satsvc.SatsRequest) (*satsvc.SatsInfosResponse, error)
SatInfos gRPC exposed to query satellites infos.
func (*Service) SatsLocations ¶
func (s *Service) SatsLocations(req *satsvc.SatsRequest, stream satsvc.Prediction_SatsLocationsServer) error
SatLocations gRPC exposed satellites position.
func (*Service) UpdateCategories ¶
UpdateCategories fetch categories and update them.
func (*Service) UpdateTLEs ¶
UpdateTLEs fetch all TLEs and update them.