Documentation
¶
Overview ¶
Package tap asks a Table Access Protocol service one question in ADQL and waits for the answer. The archives here that hold tables of observations and of stars answer this way.
Index ¶
Constants ¶
const (
CSV = "csv" // defined: TAP 1.1, values split by commas
)
The formats an answer may be asked for in.
const Every = 0
Every asks Search for every row. It's defined by Search.
Variables ¶
This section is empty.
Functions ¶
func Query ¶
Query asks a service's sync endpoint one ADQL query and reads the VOTable it answers with. When the service says the query failed, Query gives what it said.
func Search ¶
Search is the ADQL query for some columns of a table's rows whose ra and dec columns fall in a circle. top keeps that many rows, or Every does not limit them. and is a further condition, or none. order is what the rows are sorted by, or none.
Types ¶
type Jobs ¶
type Jobs struct {
// contains filtered or unexported fields
}
Jobs is a web that runs a query asked of a service's async endpoint as a job. Asked for such a query's address, as URL makes it, it submits the query, asks after the job every so often until it is complete, and opens its answer. It asks the web under it for anything else unchanged.
It says each job's address when it is submitted and when it is complete, so a fetch says which job its file came from.
func NewJobs ¶
NewJobs is a web of jobs over under, which asks after a job every so often and at most asks times, and says each job's address to told. It refuses no web under it, a wait that is not one, fewer than one ask, and no one to tell.
func (*Jobs) Get ¶
Get opens what an address holds. For a query asked of an async endpoint, that is the job's answer, once the job is complete.