Skip to content

Latest commit

 

History

History
42 lines (31 loc) · 1.18 KB

File metadata and controls

42 lines (31 loc) · 1.18 KB

Orbit

A small HTTP service that tracks satellites and the passes they make over ground stations. It is intentionally compact: one binary, an in-memory store seeded from JSON, and a handful of JSON endpoints.

Run

make run          # listens on :8080
curl localhost:8080/v1/satellites

Endpoints

Method Path Description
GET /v1/health Liveness probe.
GET /v1/satellites List satellites. Supports limit and offset.
GET /v1/satellites/{id} Read one satellite by NORAD id.
GET /v1/satellites/{id}/passes Upcoming passes over the configured station.

Layout

cmd/orbit         binary entry point
internal/api      HTTP router, handlers, middleware
internal/store    in-memory satellite store
testdata          seed catalog

Development

make test         # go test ./... -race
make lint         # go vet ./...
make build        # ./bin/orbit

License

MIT