36 lines
607 B
Odin
36 lines
607 B
Odin
package main
|
|
|
|
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() -> ([dynamic]Catalog, ^APIError) {
|
|
return nil, nil
|
|
}
|
|
|
|
get_catalog :: proc(name: string) -> (^Catalog, ^APIError) {
|
|
return nil, nil
|
|
}
|
|
|
|
get_catalog_objects :: proc(catalog_name: string) -> ([dynamic]CatalogObject, ^APIError) {
|
|
return nil, nil
|
|
}
|
|
|