Files
desi_explorer/gui/src/data.odin
T
sam_oneal 3a037b5fd3
CI / Detect changed paths (pull_request) Successful in 4s
CI / Odin unit tests and build (pull_request) Successful in 41s
CI / API unit tests and lint (pull_request) Failing after 33s
CI / Infra unit tests, vet, and preview (pull_request) Successful in 26s
got dotenv parsing working
2026-09-08 01:09:55 -06:00

49 lines
748 B
Odin

package main
import "core:net"
import "vendor:curl"
Catalog :: struct {
name: string,
release: string,
description: ^string,
object_count: ^u64,
}
CatalogObject :: struct {
id: string,
catalog: string,
object_type: string,
ra: f64,
dec: f64,
redshift: f64,
}
APIError :: struct {
code: int,
message: string,
}
get_catalogs :: proc(url: string) -> ([dynamic]Catalog, ^APIError) {
ucurl := curl.url()
defer curl.url_cleanup(ucurl)
return nil, nil
}
get_catalog :: proc(url: string, name: string) -> (^Catalog, ^APIError) {
return nil, nil
}
get_catalog_objects :: proc(
url: string,
catalog_name: string,
) -> (
[dynamic]CatalogObject,
^APIError,
) {
return nil, nil
}